https://bugs.documentfoundation.org/show_bug.cgi?id=128870
Bug ID: 128870
Summary: Unary minus ('-') precedence
Product: LibreOffice
Version: 6.3.3.2 release
Hardware: x86-64 (AMD64)
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: [email protected]
Reporter: [email protected]
Description:
The unary minus ('-') is taking precedence over exponentiation ('^') on basic
(vb?) evaluation.
To see it, create a macro module and insert:
-(1#/2)^2
on it.
The result value will be 0.25. On Excel it gives -0.25.
Steps to Reproduce:
1. Insert "somevar = -(1#/2)^2" inside a macro module
2. eval it.
3.
Actual Results:
0.25
Expected Results:
-0.25
Reproducible: Always
User Profile Reset: No
Additional Info:
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs