I am trying to convert a string of digits to a long value. On B4i it works fine, but on B4X it does not.
Dim t As String = "405006951190111400"
Log("t=" & t)
Dim i As Long = t
Log("i=" & i)
This gives:
t=405006951190111400
i=405006951190111424
Why is the i value different? How can I fix this?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.