Nikola Mikasinovic
09/30/2022, 7:54 AMAdam Cameron
it("should be a big int", () => {
var bigIntAsString = "1234567890123456789012345678900987654321"
var myBigDecimal = precisionEvaluate(bigIntAsString)
expect(myBigDecimal).toBe(bigIntAsString)
expect(myBigDecimal.getClass().getName()).toBe("java.math.BigDecimal")
var myBigInteger = createObject("java", "java.math.BigInteger").init(bigIntAsString)
expect(myBigInteger).toBe(bigIntAsString)
expect(myBigInteger.getClass().getName()).toBe("java.math.BigInteger")
})
NB1: can't give you a repro on trycf cos it blocks precisionEvaluate
NB2: that was run on Lucee. Dunno what CF does with precisionEvaluate
... I'd always just be explicit and use a Java object anyhow.