Bug 98942 - =sum() does not work with =fixed()
Summary: =sum() does not work with =fixed()
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.1.1.2 rc
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-28 20:43 UTC by Joren
Modified: 2016-03-29 07:28 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
bug is shown by example (7.00 KB, application/vnd.oasis.opendocument.spreadsheet)
2016-03-28 20:43 UTC, Joren
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joren 2016-03-28 20:43:06 UTC
Created attachment 123907 [details]
bug is shown by example

The summation =sum() does not work combined with the =fixed() function. It works fine for normal numbers.

When =fixed() is used to give a number with a fixed amount of decimals, the =sum() function does not recognize the number anymore and does not sum it up.

The strange part is that adding the fixed numbers DOES work and give a good result.
So in case A1 to A3 are =fixed(1,2), this results in =A1+A2+A3 equals 3, whereas =sum(A1:A3) equals 0.

see example file.
Comment 1 GerardF 2016-03-29 07:28:35 UTC
Nothing wrong with this.
FIXED function help says
"Returns a number as *text* with a specified number of decimal places and optional thousands separators."
and SUM function ignores text.