[Libreoffice-bugs] [Bug 128870] New: Unary minus ('-') precedence
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon Nov 18 10:53:41 UTC 2019
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: libreoffice-bugs at lists.freedesktop.org
Reporter: andre.cbarros at yahoo.com
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191118/e5806088/attachment.html>
More information about the Libreoffice-bugs
mailing list