The compact scientific formatter emits its leading digit by adding the normalized integer mantissa to '0'. Its upper normalization loop stops at exactly 10, however, so powers of ten use ':' (the character after '9') as their leading digit. For example, -100.0 becomes -:.000000e+01. Keep the normalized mantissa below 10. This preserves surrounding values and renders exact powers with a valid leading digit and adjusted exponent.pull/168/head
parent
d12696ddd6
commit
10abaf42a7
Loading…
Reference in new issue