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

Display in base-10? #23

Open
ghost opened this issue Apr 21, 2021 · 1 comment
Open

Display in base-10? #23

ghost opened this issue Apr 21, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 21, 2021

bignum_to_string appears to render a struct bn as hex rather than decimal; can we get a decimal option?

@as-iotex
Copy link

as-iotex commented Apr 8, 2022

@kokke How difficult would it be to implement printing as decimal? I am also interested in this functionality.
I am not 100% sure on how to do it but I would not mind giving it a try. Does the method indicated below look correct?
https://stackoverflow.com/questions/8023414/how-to-convert-a-128-bit-integer-to-a-decimal-ascii-string-in-c

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