Adam Cameron
Adam Cameron
<cfscript>
biOp1 = JavaCast("BigInteger", "1827121492050112345678181400")
biOp2 = JavaCast("BigInteger", "97")
writeDump([
precisionEvaluate = [
// CF can't run these as it only accepts integers for op1 for mod. Comment them out
string = PrecisionEvaluate("1827121492050112345678181400" mod 97), // 34 on Lucee 5 & 6
BigInt = PrecisionEvaluate(biOp1 mod 97) // Lucee 5: 34; Lucee 6: 68. 34 is correct.
],
BigInt = biOp1,
mod = biOp1.mod(biOp2) // 34 on all
])
</cfscript>Adam Cameron
precisionEvaluate has changed when it's given a BigInt as op1 in this case
This breaks our install process on Lucee6, so I can't even run our tests. I will check to see if I can work around it.Adam Cameron
alexpixl8
05/15/2023, 9:30 PMalexpixl8
05/15/2023, 9:31 PMalexpixl8
05/15/2023, 9:31 PMAdam Cameron
Adam Cameron
Adam Cameron
Adam Cameron
Adam Cameron