Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inaccurate display of large numbers #41

Open
txhsl opened this issue Jul 6, 2023 · 0 comments
Open

Inaccurate display of large numbers #41

txhsl opened this issue Jul 6, 2023 · 0 comments

Comments

@txhsl
Copy link

txhsl commented Jul 6, 2023

Hi, Guys. I'm developing a hash function in Neo smart contract and used some bitwise operations. Then I find that there is a precision loss for big integer's display.

For example, when I compute 87 << 56, I get 6269010681299730000 instead of 6269010681299730432, which means the last 3 numbers are lost.

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant