21 lines
821 B
Plaintext
21 lines
821 B
Plaintext
' FB 1.05.0 Win64
|
|
|
|
' The following all print 64 to the console
|
|
|
|
' integer literals of unspecified type - actual type is inferred from size or context (8, 16, 32 or 64 bit signed/unsigned)
|
|
Print 64 '' Decimal literal
|
|
Print &H40 '' Hexadecimal literal
|
|
Print &O100 '' Octal Literal
|
|
Print &B1000000 '' Binary literal
|
|
|
|
' integer literals of specific types
|
|
' Integer type is 4 bytes on 32 bit and 8 bytes on 64 bit platform
|
|
Print 64% '' Decimal signed 4/8 byte integer (Integer)
|
|
Print 64L '' Decimal signed 4 byte integer (Long)
|
|
Print 64& '' Decimal signed 4 byte integer (Long) - alternative suffix
|
|
Print 64LL '' Decimal unsigned 4 byte integer (ULong)
|
|
Print 64LL '' Decimal signed 8 byte integer (LongInt)
|
|
Print 64ULL '' Decimal unsigned 8 byte integer (ULongInt)
|
|
|
|
Sleep
|