Fixed
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Zac Spitzer
Zac SpitzerPriority
Labels
Fix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Sprint
None
Affects versions
Created 13 April 2023 at 15:18
Updated 30 May 2023 at 13:09
Resolved 30 May 2023 at 13:09
points = [ [ 0 , 0 ] , [ (10 ^ -14.1305100087), 1 ] , [ (10 ^ -13.8630800087), 2 ] , [ (10 ^ -13.5956500087), 3 ] , [ (10 ^ -13.3282200087), 4 ] , [ (10 ^ -13.0607900087), 5 ] , [ (10 ^ -12.7933600087), 6 ] , [ (10 ^ -12.5259300087), 7 ] , [ (10 ^ -12.2585000087), 8 ] , [ (10 ^ -11.9910700087), 9 ] , [ (10 ^ -11.7236400087), 10 ] ];
throws
lucee.runtime.exp.NativeException: Invalid operation [java] [script] at java.base/java.math.BigDecimal.pow(BigDecimal.java:2438) [java] [script] at lucee.runtime.op.OpUtil.exponentRef(OpUtil.java:1005) [java] [script] at tickets.exp.index_cfm$cf.call(/test/tickets/exp/index.cfm:4)
works with 5.x and 6.0.0.313
https://trycf.com/gist/1e2557c0f6d0f9bd35d442c9c74a886e/lucee6-beta?theme=monokai
https://github.com/lucee/Lucee/blob/6.0/core/src/main/java/lucee/runtime/op/OpUtil.java#L1005
public static Number exponentRef(PageContext pc, Object left, Object right) throws PageException { if (AppListenerUtil.getPreciseMath(pc, null)) { return Caster.toBigDecimal(left).pow(Caster.toIntValue(right)); } return Caster.toDouble(StrictMath.pow(Caster.toDoubleValue(left), Caster.toDoubleValue(right))); }