| Summary: | Calculation bug in LibreOffice Calc when working with € | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Mike <mike> |
| Component: | LibreOffice | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | RESOLVED NOTABUG | ||
| Severity: | normal | CC: | miguelangelrv, mike |
| Priority: | medium | Keywords: | difficultyInteresting |
| Version: | 7.3.7.2 release | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
| Attachments: | Example what I though was a bug | ||
|
Description
Mike
2023-12-02 07:25:46 UTC
I just realized that in my situation it showed up in calculating money but of cause the rounding of numbers with more decimals as you want to show also means that faulty calculations in Calc can happen to al numbers it calculates. There is an option for this. Menu/Tools/Options/LibreOffice Calc/Calculation - Precision as show. null/C:/Program%20Files/LibreOffice/help/en-US/text/shared/optionen/01060500.html?System=WIN&DbPAR=CALC&HID=modules/scalc/ui/optcalculatepage/OptCalculatePage#:~:text=with%20Microsoft%20Excel.-,precision%20as%20shown,-Specifies%20whether%20to Cannot reproduce input of: 0.015 0.01 shows with 2 decimal places: 0.02 0.01 and the sum of both with 2 decimal places _shows_ : 0.03 If you need also further calculations with the _formatted_ Values, you should probably use →→Tools→Options→LO-Calc→Calculate→→ [x]Precision as shown Created attachment 191190 [details]
Example what I though was a bug
I added the document "test bug.ods" This shows what I mean. I found the setting "Precision as shown" and that is indeed exactly what solves this. You can toggle it to see the difference in the calculation. If you did not set "Precision as shown", the outcome of the 2 and 3 decimal calculations are exactly € 0,01 off. Now I am running Linux Mint which comes with LibreOffice. The default setting of "Precision as shown" is "Not activated". I presume that on whatever OS you install it, that is also the dafault setting. Why is this setting off by default? Seems to me it should be on by default... |