Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Currency rounding off for large number #337

Closed
tharzeez opened this issue Feb 17, 2020 · 1 comment
Closed

Currency rounding off for large number #337

tharzeez opened this issue Feb 17, 2020 · 1 comment

Comments

@tharzeez
Copy link

new Intl.NumberFormat('US', { style: 'currency', currency: 'EUR' }).format(12345671234567187821)

// prints €12,345,671,234,567,188,000.00

The last number few numbers are rounded off.

@tharzeez
Copy link
Author

i am closing this issue, as it is more to do with the language itself.

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