When using split to convert strings to numbers (the default) it seems to have precision issues converting integers well below the 64 bit limit:
p=split("123456789", " ")
?p[1]
?math.type(p[1]) |
shows 123456792 and indicates the type is integer
p=split("123456789", " ", false)
n=tonum(p[1])
?n
?math.type(n) |
shows 123456789 and also indicates the type is integer.







0 comments