Is There a way to set a cfset from a integer to a ...
# cfml-beginners
n
Is There a way to set a cfset from a integer to a long integer, because i get a error that the value is too long for a integer
a
Copy code
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.