The problem has been discussed in OOo too;
https://issues.apache.org/ooo/show_bug.cgi?id=37129

If you will keep rule a^(r*s) = (a^r)^s you cannot allow negative basis
a.

Excel does not allow arbitrary fractions but tests only for unit
fraction. That is not difficult. The highest such converted number is
1/(2^31-3) in Excel; 1/(2^31-1) fails.

So the question is, whether LO should implement Excels behavior for
easier converting from Excel. ODF1.2 says "POWER(a,b), where a<=0 and
INT(b)!=b, is implementation-defined." in chapter 6.16.46. So the
standard allows such solution.

If you want to use arbitrary fractions, the class TOOLS_DLLPUBLIC
Fraction from fract.hxx in tools might be useful.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/264345

Title:
  =(-8)^(1/3)

To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/264345/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to