Bug 98248 - calcul
Summary: calcul
Status: RESOLVED DUPLICATE of bug 37271
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-28 06:29 UTC by BOUNHOURE
Modified: 2020-08-31 12:05 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BOUNHOURE 2016-02-28 06:29:40 UTC
In calc version 4.3.7.2, when I calculate for exemple -3^2 It gives 9 and not -9
^ don't respect priority
Thanks
Comment 1 raal 2016-02-28 08:46:53 UTC
-3^2 = 9  it's correct.
Comment 2 Julien Nabet 2016-02-28 12:12:20 UTC
Bounhoure has right, in maths exponentials have an higher priority, so it should be considered as -(3^2) not as (-3)^2
This link describes the pb: https://en.wikipedia.org/wiki/Order_of_operations#Exceptions
So to be sure the result is correct, add some parenthesis because it seems there's no way it can be fixed without breaking any compatibility.
See tdf#37271 for details.

*** This bug has been marked as a duplicate of bug 37271 ***
Comment 3 MM 2016-02-28 12:20:49 UTC
(In reply to Julien Nabet from comment #2)
> there's no way it can be fixed without breaking any compatibility.
> See tdf#37271 for details.
> 

Well, then atleast leave bug 37271 open, as it's a bug. And ppl can search for possible dups.
Comment 4 Julien Nabet 2016-02-28 13:06:24 UTC
(In reply to MM from comment #3)
> (In reply to Julien Nabet from comment #2)
> > there's no way it can be fixed without breaking any compatibility.
> > See tdf#37271 for details.
> > 
> 
> Well, then atleast leave bug 37271 open, as it's a bug. And ppl can search
> for possible dups.

It's useless that I reopen it since it'll be considered as not a bug (as its status indicates it).