-
Notifications
You must be signed in to change notification settings - Fork 16
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
Unexpected return value #37
Comments
Hi @gagmeng, format(bignumber('-830'), {notation: "hex", wordSize: 64}) // 0xfffffffffffffcc2i64 Similar issue with the second part of your questions. Numbers greater than 15 significant digits would need to be converted to hex(bignumber('18446744073709550') + 2931) // 0x4189374bc6b361
hex(bignumber('18446744073709551') + 2931) // 0x4189374bc6b362
hex(bignumber('18446744073709552') + 2931) // 0x4189374bc6b363
hex(bignumber('18446744073709553') + 2931) // 0x4189374bc6b364 On that note, I did find that using a number instead of string value in hex(bignumber(18446744073709551) + 2931) // 0x4189374bc6b361
hex(bignumber('18446744073709551') + 2931) // 0x4189374bc6b362 This may be a bug with Math.js and I will report it there. Thank you! |
I posted the question here and looks like it has to do with the rounding errors when it comes to javascript handling large numbers. |
Hi @gagmeng, Have you changed any settings? and can you please the share the Error message. |
Hi @gagmeng, |
_2024_01_24_18_26_41_464.mp4
Numara does not support 64-bit data types; is that correct?
The text was updated successfully, but these errors were encountered: