-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
better sprintf formatting for floats
When outputing a float to some number of decimal places, some calculations are done with native numbers and others with bigints. This results in odd formatting once intermediate calculations generate a number that's too big to fit in a num. This commit reworks the stringify-to-precision() routine to treat the number as a string and then use only bigints for the individual parts. Fixes RT #120232
- Loading branch information
Showing
1 changed file
with
25 additions
and
13 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