The 16 digit number is changed to a Double
by VBScript because neither Int
, nor Long
can store that number. You can use the FormatNumber function to display it as an integer:
FormatNumber(Expression, NumDigitsAfterDecimal, IncludeLeadingDigit, UseParensForNegativeNumbers, GroupDigit)
num = 1234567890123456
msgbox FormatNumber(num, 0, -2, -2, false)