GNOME Bugzilla – Bug 680475
rounding issue
Last modified: 2012-07-23 19:08:38 UTC
If it is of interest: in the attached sheet, cells in the third row are incremented by 0.1. The result has sometimes only one digit (9, 9.2, 9.5, etc.) and sometimes many digits.
Created attachment 219521 [details] the .gnumeric file to reproduce the problem
This comes down to 0.1 not being representable as a finite binary fractional number. Set a one-decimal format for the number. Also, if last-bit precision is important to you, you should avoid long chains of calculation such as repeatedly adding 0.1. Rounding errors may accumulate that way. The sequence 1/10, 2/10, 3/10, ... is a better choice. *** This bug has been marked as a duplicate of bug 509965 ***