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


On 19/05/15 12:24, Winfried Donkers wrote:
Hi,

 

I'm currently working on the various FLOOR functions (all Calc and Excel
variations) and I struggle with this phrase in
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part2.html#__RefHeading__1018610_715980110:

 

"If modeis given and not equal to zero, the absolute value of Nis
rounded __away from zero__ to a multiple of the absolute value of
significanceand then the sign applied ."

 

That sounds to me as CEILING behaviour, not FLOOR.

Can N be negative? The reference to absolute values says yes, so
negative numbers are rounded DOWN, ie FLOOR behaviour, while positive
values are rounded UP ie CEILING behaviour.
 

Is my interpretation wrong, is there an error in the standard?

What should the behaviour be to have FLOOR comply with ODFF1.2?

 

Winfried

Cheers,
Wol


Context


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.