Fix various floating point issues in printf
This commit is contained in:
@@ -37,6 +37,15 @@ Float madness:
|
||||
0.000010
|
||||
-1.234568e+02
|
||||
-00000001.234568e+02
|
||||
%.5g: -123.46
|
||||
%.5f: -123.45679
|
||||
%.5e: -1.23457e+02
|
||||
%.*g: -1.2e+02
|
||||
%.*f: -123.46
|
||||
%.*e: -1.23e+02
|
||||
%.*2$g: -123.46
|
||||
%.*2$f: -123.45679
|
||||
%.*2$e: -1.23457e+02
|
||||
100000
|
||||
1e+06
|
||||
1.000000e+06
|
||||
|
||||
Reference in New Issue
Block a user