You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to have an option (-cc ?) that actually minifies the output. Strip whitespace, print integer-ish numbers as integer, possibly specify float precision.
The text was updated successfully, but these errors were encountered:
I'll add an option to remove whitespace, or maybe just make the existing -c do that. Numbers are already printed as small as they can be - the rendered text is the shortest string which, after round-to-nearest-double, produces the original input.
So, integers are already printed as integers. If you divide 1 by 10, the internal double is actually about
0.10000000000000000555
However, the string "0.1" is shorter and rounds to the same double value, so that's printed instead. (this isn't my code, go look at dtoa.c on netlib if you want wayyyyy too many details).
I would like to have an option (-cc ?) that actually minifies the output. Strip whitespace, print integer-ish numbers as integer, possibly specify float precision.
The text was updated successfully, but these errors were encountered: