Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Formatter.floatformat and Object.to_format (#1602)
* fix: change float format specifier in Object.to_format Fix the float format specifier in Object.to_format. If there is a float stored in a Object such as 3.14, it would be printed out as 3 because the format specifier is %d but should be %g. * fix: print nan in floatformat Fix floatformat to print 'nan' if float is nan. Currently, io::printn(float.nan) will produce 'inf' instead of 'nan'.
- Loading branch information