Date: prev next · Thread: first prev next last
2018 Archives by date, by thread · List index

On Fri, 2018-12-28 at 18:41 +0000, Brian Barker wrote:
At 18:26 28/12/2018 +0100, Harvey Nimmo wrote:
I'm running LO on OpenSuse and I wonder if anyone else can confirm 
this error on calc. Multiplying 2048.28*.146 yields correctly
295.54488, ...

Er, that wouldn't be correct with my maths. Do you perhaps mean 
2024.28 * 0.146 instead?

... but when rounding down to 2 decimal places, 295.55 is
(instead of 295.54) (either using ROUND(2048.28*.146,2) or with
field format.

That would indeed be odd. It's what you would get if you repeatedly 
rounded the value to fewer digits one by one
295.54488 -> 295.5449 -> 295.545 -> 295.55
- instead of doing it in one go. So that's not the way to do it, of

There is one way that you can create this result, using options at 
Tools | Options... | LibreOffice Calc | Calculate. If you have
decimals for general number format" ticked and set to "3 Decimal 
places", your original result will be displayed - correctly - as 
295.545. If you then round *that* value to two fractional places,
will properly get 295.55. The situation can be complicated if you 
also have "Precision as shown" ticked, which causes subsequent 
calculations to be based on what you see in a cell instead of the 
underlying, unrounded value.

What happens if you ensure that both of these options are *not*

I trust this helps.

Brian Barker

You are right the example should have been 2024.28 * 0.146. Sorry about
that and for the trouble caused! 

However, I do not have 'Limit decimals for general number format' set
to anything. (i.e. No tick)
To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
Privacy Policy:


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.