Got a question that the wiki doesn't answer? Ask on the forum (preferred), or join us on IRC.



From Wiki
Jump to: navigation, search

Numeric literals in MethodScript source are handled as 64 bit values. For floating point values, that is, numbers with a decimal, the max value is 1.7976931348623157E308 and the minimum value is 4.9E-324. For integral values, the max value is 9223372036854775807 and the minimum value is -9223372036854775808. Undefined numbers and Infinite values are not supported.

Integral numbers may be written in source as binary or hexadecimal values. For instance, 15 may be written as either 15, 0b1111, or 0xF. Binary values must start with "0b" and may only contain the numbers "1" or "0". Hexadecimal numbers start with "0x" and may only contain the numbers 0-9, and a-f, either lowercase or uppercase. Binary and hexadecimal values may only be integral values.

Navigation menu