https://bugs.documentfoundation.org/show_bug.cgi?id=121398
Regina Henschel <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |olivier.hallot@libreoffice. | |org Component|Calc |Documentation --- Comment #16 from Regina Henschel <[email protected]> --- The Operator ^ (6.4.6, part 4, ODF 1.3) is defined by reference to the POWER function. The POWER function (6.16.46, part4, ODF 1.3) allows some implementation-defined behavior: <quote> POWER(0,0) is implementation-defined, but shall be one of 0,1, or an Error. POWER(0,B), where B < 0, shall return an Error. POWER(A,B), where A ≤ 0 and INT(B) != B, is implementation-defined. </quote> Implementation-defined behavior has to be documented outside the code. For LibreOffice it is on page https://wiki.documentfoundation.org/Development/ODF_Implementer_Notes/List_of_LibreOffice_ODF_implementation-defined_items For implementation-defined behavior in regard to operators and functions that page states, that it is defined in the online-help. The online help states " =POWER(0,0) returns 1." That is conform to ODF. But the online help says nothing about the case "POWER(A,B), where A ≤ 0 and INT(B) != B". So this is a missing documentation. Returning a value in same cases and an error in other cases is conform to ODF, but it must be documented. LibreOffice provides in addition detailed information for functions, in case of POWER it is page https://wiki.documentfoundation.org/Documentation/Calc_Functions/POWER There the description of the behavior of case "POWER(A,B), where A ≤ 0 and INT(B) != B" does not fit to the actual implementation. The current implementation is possible in ODF, but the documentation is wrong/missing. So I set Component to Documentation. -- You are receiving this mail because: You are the assignee for the bug.
