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

On 29/03/16 11:45, Regina Henschel wrote:
To force a result of -4 you need to tell Calc, that the minus is a
binary operator. The formula "=0-2^2" would do that.

Of course changing such behavior will cause a hell lot of trouble in
existing documents… but perhaps the operator precedence should be
explicitly specified on the wiki ?

The precedence is defined in ODF

Doubtless so.

But of little comfort to the hapless user, expecting a more mathematical convention:

mike@spock> perl -e 'print -3**2, "\n"'

Oh well. Caveat programmer, I suppose.

Mike Scott (unet2 <at> [deletethis]
Harlow Essex England

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


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.