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

function hex return error result #22

Closed
gagmeng opened this issue Sep 20, 2023 · 3 comments
Closed

function hex return error result #22

gagmeng opened this issue Sep 20, 2023 · 3 comments

Comments

@gagmeng
Copy link

gagmeng commented Sep 20, 2023

Hex(123456) return NaNe240", the expected return is 0x1e240.
Thanks!

@bornova
Copy link
Owner

bornova commented Sep 20, 2023

Hi @gagmeng! Looks like a bug in the output formatting. The formatter function is processing the answer (0x1e240) as if it is exponential notation (due to the "e" in it) and trying to format the value before the 'e' as a number but of course it is NaN. I will release a fix on the next update shortly. Thank you for reporting!

@bornova
Copy link
Owner

bornova commented Sep 20, 2023

Just released v4.0.7 (5e30d6d) with the fix. Thank you!

@gagmeng
Copy link
Author

gagmeng commented Sep 21, 2023

Nice job. Thanks for your quick fix.

@gagmeng gagmeng closed this as completed Sep 21, 2023
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

2 participants