Quote:
Originally Posted by Bill Brock After entering a formula in a spreadsheet cell and formatting for 4 decimals it will revert back to two decimals at will. |
I assume this has to be incorporated with your next statement right? (They're just not 'randomly' changing?)
Quote:
Originally Posted by Bill Brock If any of the cells in the formula have a set number of decimal points then the cell wants to default to the number of decimal places the cell used in the formula has instead of the number of decimal places it was formatted to. |
Think I see what your saying, but what's your reference spreadsheet program?
MS Excel 07 12.0.6:
A1: typed 0.1234 displayed 0.1234
A1: typed 0.1234 displayed 0.1234 -hid 2 decimals so 0.12 was shown
A3: =SUM(A1:A2) displays
0.2468
OO Calc 2.4.0:
A1: typed 0.1234 displayed 0.12 -added 2 decimal places so 0.1234 was shown
A2: typed 0.1234 displayed 0.12 -left alone
A3: =SUM(A1:A2) displays
0.25
ZCS 5.0.5/.6:
A1: typed 0.1234 displayed 0.1234 -left auto
A2: typed 0.1234 displayed 0.1234 -set to 2 decimals so 0.12 was shown
A3: =SUM(A1:A2) displays
0.25 clicking cell shows mode is 2 decimals
-You have to manually select 'Auto' again or '4 decimals' before it shows 0.2468
More proof that it's using the largest manually selected:
ZCS 5.0.5/.6:
A1: typed 0.123456 displayed 0.123456 - left auto
A2: typed 0.123456 displayed 0.123456 -changed to
5 decimals so 0.12345 was shown
A3: typed 0.123456 displayed 0.123456 -changed to 4 decimals so 0.1234 was shown
A4: typed 0.123456 displayed 0.123456 -changed to 3 decimals so 0.123 was shown
A5: typed 0.123456 displayed 0.123456 -changed to 2 decimals so 0.12 was shown
A6: =SUM(A1:A5) displays
0.61728 clicking cell shows mode is
5 decimals
Almost the same thing again but left A2 alone:
ZCS 5.0.5/.6:
A1: typed 0.123456 displayed 0.123456 - left auto
A2: typed 0.123456 displayed 0.123456 - left auto
A3: typed 0.123456 displayed 0.123456 -changed to
4 decimals so 0.1234 was shown
A4: typed 0.123456 displayed 0.123456 -changed to 3 decimals so 0.123 was shown
A5: typed 0.123456 displayed 0.123456 -changed to 2 decimals so 0.12 was shown
A6: =SUM(A1:A5) displays
0.6173 clicking sell shows mode is
4 decimals
So you could file an RFE for:
Use 'auto decimals' instead of reverting to largest manually selected decimal of other cells in formulas. But that's not a bug as far as I can tell, it's just a preferred usage case.
As the last above scenario is still contradictory to OO Calc 2.4.0:
A1: typed 0.123456 displayed 0.12 - left auto
A2: typed 0.123456 displayed 0.12 - left auto
A3: typed 0.123456 displayed 0.12 -changed to 4 decimals so 0.1235 was shown
A4: typed 0.123456 displayed 0.12 -changed to 3 decimals so 0.123 was shown
A5: typed 0.123456 displayed 0.12 -changed to 2 decimals so 0.12 was shown
A6: =SUM(A1:A5) displays
0.62 (seems OO likes 2 decimal places no matter the cell width)
And also still contradictory to MS Excel 07:
A1: typed 0.123456 displayed 0.123456 - left auto
A2: typed 0.123456 displayed 0.123456 - left auto
A3: typed 0.123456 displayed 0.123456 -changed to 4 decimals so 0.1235 was shown
A4: typed 0.123456 displayed 0.123456 -changed to 3 decimals so 0.123 was shown
A5: typed 0.123456 displayed 0.123456 -changed to 2 decimals so 0.12 was shown
A6: =SUM(A1:A5) displays
0.61728 (just logic - still stays at 5 after expanding cell width)