The Milano double format. Non-finite values are nan, inf, -inf.
Finite values use the shortest round-trip digits, rendered as plain
decimal (integral values keeping one fractional digit) while the
normalized exponent is within [-4, 15], and otherwise as scientific
d[.ddd]e[-]NN: lowercase e, no plus sign, no zero padding.
JavaScript's own toString is shortest round-trip, so it supplies the
digits; everything about their presentation is re-derived here.
The Milano double format. Non-finite values are
nan,inf,-inf. Finite values use the shortest round-trip digits, rendered as plain decimal (integral values keeping one fractional digit) while the normalized exponent is within [-4, 15], and otherwise as scientificd[.ddd]e[-]NN: lowercasee, no plus sign, no zero padding.JavaScript's own
toStringis shortest round-trip, so it supplies the digits; everything about their presentation is re-derived here.