This repository was archived by the owner on Jul 26, 2023. It is now read-only.
forked from adamwdraper/Numeral-js
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes problem with many optional decimals
When using a format with many optional decimals, insignificant trailing digits could be added to the number: Ex: numeral(3162.63).format('0.0[000000000000]') = "3162.6300000000001" Also changed numerals internal toFixed method to never return trailing decimal points. Also fixed a bug where an extra optional decimal was being added when using a specified abbreviation.
- Loading branch information
Showing
3 changed files
with
27 additions
and
12 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters