-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with prepending zero in percentage
Before it was a bug when flooring negative numbers added to the length of the number for the sprintf mask. For example -0.091 becomes -9.1 in percentage, floors to -10 which is going to increase $wholePartSize by 1 and add a leading zero to the result: -09.1% with format 0.0%. This happened for negative ranges where floor will increse the length of the original number.
- Loading branch information
1 parent
dc84a51
commit aa640bb
Showing
3 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
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
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