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/163/head
parent
c97938697b
commit
ca5df0b598
Loading…
Reference in new issue