GNOME Bugzilla – Bug 656043
incorrect formatting of # ???/???
Last modified: 2011-08-25 07:46:50 UTC
Using the # ???/??? format on 0.003 format this as 0 3/1000 this has 2 problems: (1) For fractions # should not be shown if the integer part is 0 (Note that ???/??? means to never show integer parts) (2) The denominator should not have 4 digits when only 3 are asked for!
Note that apparently Excel yields 1/333
Part (2) is fixed. Re part (1) note that a whole integer flagged by # should not be shown unless the fractional part is omitted since the numerator is 0, ie. with format # ?/2 0 -> 0 0.1 -> 0 0.3 -> 1/2 currently incorrectly as 0 1/2 Of course the format 0 ?/2 should always show an integer part.
Note that the scientific format #E+00 correctly drops the mantissa if it is 1!
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.