1.2 KiB
1.2 KiB
LibreOffice Bugs
Rounding and "ulp" errors
Excel will write the full IEEE754 value. This affects values like 0.1 + 0.2
which have stored values like 0.30000000000000004
. Excel "General" formatting
is strategically chosen to cap at 11 digits, avoiding these issues in display.
LibreOffice rounds off the last few digits.
The following files are referenced in the issues:
- Original issue file
- File Resaved in Excel 2011
- File Resaved in Excel 2013
- File Resaved in Excel 2013 "Strict OpenXML"
- File Resaved in LibreOffice
Look at cell C172 in the sheet1.xml subfile of each. The Excel files show:
<c r="C172" s="1">
<v>3.2400000000000005E-2</v>
</c>
The LO file shows:
<c r="C172" s="4" t="n">
<v>0.0324</v>
</c>