Bug 154540 - wrong order of operations
Summary: wrong order of operations
Status: RESOLVED DUPLICATE of bug 114929
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.3.2.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-01 10:52 UTC by Manuel Ruiz
Modified: 2023-04-01 22:51 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 Manuel Ruiz 2023-04-01 10:52:12 UTC
Description:
-(A1)^2 yielded (A1)^2 instead of -((A1)^2)

Steps to Reproduce:
1.type a value in A1
2.type somewhere =-(A1)^2
3.

Actual Results:
(A1)^2 

Expected Results:
-((A1)^2)


Reproducible: Always


User Profile Reset: No

Additional Info:
caramba
Comment 1 raal 2023-04-01 12:24:07 UTC
see https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part4-formula/OpenDocument-v1.3-os-part4-formula.html#__RefHeading__711840_826425813
section 5.5 Operators

Note 1: Prefix “-” has a higher precedence than “^”, “^” is left-associative, and reference intersection has a higher precedence than reference union.

So, if I understand correctly, not a bug.
Comment 2 m_a_riosv 2023-04-01 22:51:32 UTC

*** This bug has been marked as a duplicate of bug 114929 ***