Skip to content
This repository has been archived by the owner on Mar 17, 2019. It is now read-only.

Deal with amounts as strings instead of numbers #3

Open
wbobeirne opened this issue Oct 26, 2018 · 0 comments
Open

Deal with amounts as strings instead of numbers #3

wbobeirne opened this issue Oct 26, 2018 · 0 comments

Comments

@wbobeirne
Copy link

wbobeirne commented Oct 26, 2018

JS floats are imprecise and are limited to 32 bits. Numbers should probably be dealt with in satoshis as strings rather than bitcoins as numbers, and internally it should probably be managed using a library like bn.js.

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

No branches or pull requests

1 participant