I[s] there a notation for octal, hexadecimal or binary constants in GAME code?
I have just added a new int operator that recognizes whether a number is a hexadecimal, octal, decimal, or binary literal and converts it to an integer. Hexadecimal literals begin with 0x, octal with just 0, decimal with nothing special, and binary with 0b. It checks the first characters to determine the base, then uses PHP's intval() function.
I have just added a new int operator that recognizes whether a number is a hexadecimal, octal, decimal, or binary literal and converts it to an integer. Hexadecimal literals begin with 0x, octal with just 0, decimal with nothing special, and binary with 0b. It checks the first characters to determine the base, then uses PHP's intval() function.