in reply to Re: How to control no. of digits on exponent
in thread How to control no. of digits on exponent
Note that the number of exponent digits in the scientific notation produced by %e, %E, %g and %G for numbers with the modulus of the exponent less than 100 is system-dependent: it may be three or less (zero-padded as necessary). In other words, 1.23 times ten to the 99th may be either "1.23e99" or "1.23e099".
So as ikegami points out, you would have to manually strip leading 0's from the exponent.
|
|---|