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

Support Bitcoin's maximum precision #16

Closed
pedrobranco opened this issue Aug 23, 2016 · 1 comment
Closed

Support Bitcoin's maximum precision #16

pedrobranco opened this issue Aug 23, 2016 · 1 comment

Comments

@pedrobranco
Copy link
Collaborator

When parsing a Bitcoin/Crypto response that has an value with more than 15 significant digits: example is 1222223333.00000001.

The lib request with option

{ json:true }

used by bitcoin-core uses JSON.parse which loses precision returning the amount 1222223333.

Suggestion: use request with

{ json: false }

and parse the raw output with the lib json-bigint-string.

@ruimarinho @nunofgs @fixe

@ruimarinho
Copy link
Owner

Closed by #17.

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