GOOC - Game Oriented Object C

GOOC - Game Oriented Object C

Next: Real Number Constants, Previous: Integer Constants, Up: Constants
[Contents]

5.3.2. GOOL Integer Constants

5.3.2. GOOL Integer Constants

A GOOL integer constant is a special type of integer that is shifted eight bits to the left from its represented value. GOOL integers may be written in base 10 (decimal) or base 16 (hexadecimal).

Decimal GOOL integers are integer constants succeeded by the character G or g. The following are valid GOOL integers, and their final transformed value: 1G => 1 << 8, 256 12G => 12 << 8, 3072 100G => 100 << 8, 25600

Hexadecimal GOOL integers are hexadecimal constants preceeded by the character G or g. The following are valid GOOL integers, and their final transformed value: G0x30 => 0x30 << 8, 0x3000 G0XB8 => 0xB8 << 8, 0xB800 G0x64 => 0x64 << 8, 0x6400