Apache OpenOffice (AOO) Bugzilla – Issue 32071
=SIN(PI()) does not return zero.
Last modified: 2013-08-07 15:12:27 UTC
Open up the spread sheet. paste in "=SIN(PI())" withount the quotes, notice that the value shown is Zero. paste in "=SIN(PI())=0" withount the quotes, notice that the value shown is FALSE. If you format the cells as scientific, you will see that the value is actually 1.22E-016, and not zero.
Created attachment 16757 [details] spreadsheet that illustrates the problem.
Hi Eike, Excel displays 1.22E-16 as the result instead of 0 as we do. Frank
As Frank already mentioned, also Excel doesn't produce 0 as the result. This is due to the IEEE754 binary representation of floating point numbers and the fact that PI doesn't have a finite number of decimals places. Frank, we display zero because the standard number format is "display with two decimals". One could argue that if the number is smaller than that, a scientific format could automatically be chosen instead. Do we always want that? => decision up to User Experience, reassigning to BH. Will not be changed for OOo2.0 => Enhancement, P4, OOoLater. Eike
To grep the issues easier via "requirements" I put the issues currently lying on my owner to the owner "requirements".