Bug 116918 - Sum Total ignoring changes in client cells if they are formatted to hide decimals.
Summary: Sum Total ignoring changes in client cells if they are formatted to hide deci...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.4.5.1 release
Hardware: Other macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-10 08:17 UTC by Ray
Modified: 2018-04-10 10:09 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Snapshot of Options (183.31 KB, image/jpeg)
2018-04-10 09:06 UTC, Ray
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ray 2018-04-10 08:17:58 UTC
I have a number of sub totals and a grand total on my spreadsheet - each containing Sterling currency. If all are set to show 2 decimal places all works OK but if I hide the decimals in the sub totals and then add or subtract figures the grand total only responds to whole pounds i.e. the pence value only alters if the sub totals display pence. I am not using roundup or rounddown
Comment 1 Mike Kaganski 2018-04-10 08:33:05 UTC
Check if Options-LibreOffice Calc-Calculate-General Calculations-Precision as shown is checked.
Comment 2 Ray 2018-04-10 09:06:14 UTC
Created attachment 141255 [details]
Snapshot of Options
Comment 3 Mike Kaganski 2018-04-10 09:17:55 UTC
So, as you show on your screenshot, the "Precision as shown" is indeed selected. Thus, Calc uses numbers *as displayed in cells* for further calculations. If you show a subtotal as a whole number, and then use it in calculations of total, it's expected to behave as you describe. Unselect the option to resolve the issue. In general, I'd not use it. If you need some values to have limited precision, use ROUND.

Closing NOTABUG.
Comment 4 Ray 2018-04-10 09:26:33 UTC
Thanks very much :-)