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

Change type of prices from number to a bigdecimal library #36

Open
angryzor opened this issue Nov 29, 2021 · 0 comments
Open

Change type of prices from number to a bigdecimal library #36

angryzor opened this issue Nov 29, 2021 · 0 comments

Comments

@angryzor
Copy link
Contributor

Change type of prices from number to one of these libraries:

They're all solid and made by the same person but have slightly different properties:

Library Precision type Size
bignumber.js Number of floating point digits Full-featured
big.js Number of floating point digits Reduced
decimal.js Number of significant digits Full-featured
decimal.js-light Number of significant digits Reduced

For our needs, I think big.js would be ideal.

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