Int64 Class

An Int64 is an intrinsic data type in REALbasic. It is a signed integer that uses eight bytes of storage.

# Notes

It has a range of range of -9223372036854775808 to +9223372036854775807. The default value of an Int64 is 0.

If either operand of an integer arithmetic expression is a 64-bit value, the result will be a 64-bit value. If both operands are 32 bits or smaller, the result will be a 32-bit value. If either operand of an arithmetic expression is signed, the result will be signed; the result will only be unsigned if both operands are unsigned.

If a numeric literal outside the range of an Int32 are converted to Int64s. Prior to the introduction of the Int64 data type, they were converted to floating point.

REALbasic offers both signed and unsigned integer data types that use one, two, four, or eight bytes of memory. The following table summaries these data types.

Data Type | Number of Bytes | Range
--- | --- | ---
Int8 or Byte | 1 | -128 to 127
Int16 | 2 | -32,768 to 32,767
Int32 or Integer | 4 | -2,147,483,648 to 2,147,483,647
Int64 | 8 | -2^63 to 2^63-1
UInt8 | 1 | 0 to 255
UInt16 | 2 | 0 to 65535
UInt32 | 4 | 0 to 4,294,967,295
UInt64 | 8 | 0 to 2^64-1

# See Also

Boolean, Byte, Color, Double, Int8, Int16, Int32, Integer, Ptr, Single, String, UInt8, UInt16, UInt32, UInt64, Variant data types; -, +, *, /, <, <=, =, >=, >, <>, \, IsNumeric, Mod, Str, Val, VarType, functions; Dim statement.