Bug 167992 - help for infix operator "^" lacks info about a negative base and fractional exponents
Summary: help for infix operator "^" lacks info about a negative base and fractional e...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
Version:
(earliest affected)
26.2.0.0 alpha0+ master
Hardware: All All
: medium normal
Assignee: Olivier Hallot
URL:
Whiteboard: target:26.2.0
Keywords:
Depends on:
Blocks: HelpGaps-NewFeatures
  Show dependency treegraph
 
Reported: 2025-08-17 18:37 UTC by Regina Henschel
Modified: 2025-08-19 11:57 UTC (History)
1 user (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 Regina Henschel 2025-08-17 18:37:18 UTC
ODF specifies that the expression a^b has to be calculated as POWER(a;b), see 6.4.6 Infix Operator "^", part 4 ODF 1.4.
https://docs.oasis-open.org/office/OpenDocument/v1.4/cs01/part4-formula/OpenDocument-v1.4-cs01-part4-formula.html#Infix_Operator_POW
This information is missing in the help.

In LibreOffice, both the infix-operator "^" and the POWER function use the implementation ScInterpreter::ScPow() in /sc/source/core/tool/interpr5.cxx

Negative base and fractional exponents are allowed, but the behavior for a negative base is implementation-defined. The help for POWER has the needed info, though not really exact, but the user learns that he has to be careful. For the infix operator "^", info about a negative base is missing.

So perhaps add to the infix operator a sentence:
The expression a^b is calculated the same way as POWER(a,b).

Or write a similar info about negative base and fractional exponents for the infix operator "^".

https://help.libreoffice.org/26.2/en-US/text/scalc/01/04060106.html#hd_id3155717
https://help.libreoffice.org/26.2/en-US/text/scalc/01/04060199.html

To see the problems for users look at bug 148488.
Comment 1 Commit Notification 2025-08-19 11:57:23 UTC
Olivier Hallot committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/6031f815c4b10d9c1550a05b4a4258b582307f32

tdf#167992 Precision on exponentiation operator