GNOME Bugzilla – Bug 500356
Add-decimals problem for exponential formats
Last modified: 2007-11-29 20:50:23 UTC
enter 34.34 and format that cell in scientific notation with no decimals at all. Now increasing the precision of the cell increases the precision of the exponent rather than the mantissa.
Created attachment 99832 [details] [review] fix for this problem This should handle the scientific notation. Please review!
Hmm... three minor things. 1. Move the common "g_string_append_c (res, t);" out of both branches and put it after the "if" statement. 2. In the last_zero>=0 case, use g_string_insert_len (res, last_zero + 1, ".0", 2); 3. In the last_zero==-1 case you should probably simply append ".0". That would handle #E+00".
Created attachment 99851 [details] [review] modified patch Morten: is this what you had in mind? Please review.
Go for it!
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.