Is there something like java.math.BigInteger in ObjectScript?
Is it possible to use integer with a higher precision so that something like this works:
ClassMethod BigNumbers()
{
Set bigInt1 = 9223372036854775807
Set bigInt2 = 9223372036854775808
W !,bigInt1
W !,bigInt2
Set bigInt3 = 9223372036854775807123456789
W !,(bigInt3 # 2)
}
9223372036854775807
9223372036854775810 // should be 9223372036854775808
0 // should be 1
The docs say "... However, with extremely large numbers (larger than 9223372036854775807E127) it is not always possible to convert a numeric string to a Decimal value. ..."[0], but operations on numbers bigger than 9223372036854775807 are not working correctly.