In Brightscript numbers with 10 or more digits are treated with the following logic:
If a constant contains 10 or more digits, or if D is used in the exponent, that number is double precision. Adding a # declaration character also forces a constant to be double precision.
If the number is not double-precision, and if it contains a decimal point, then the number is float. If the number is expressed in exponential notation with E preceding the exponent, the number is float.
If neither of the above is true of the constant, then it is an integer.
but you can also force long numbers to be casted as integers (as long as they fit in 32 bits) by using the % character.
In Brightscript numbers with 10 or more digits are treated with the following logic:
but you can also force long numbers to be casted as integers (as long as they fit in 32 bits) by using the
%
character.However
%
isn't supported in brs