This shows you the differences between two versions of the page.
en:integerexpressions [2016/08/12 12:06] admin created |
en:integerexpressions [2016/08/12 12:12] admin |
||
---|---|---|---|
Line 5: | Line 5: | ||
Examples include: | Examples include: | ||
- | ^Integer | + | ^Integer |
|10| | |10| | ||
- | |-2345| | + | |ABS(-2345)| |
- | |0| | + | |int(9.987)| |
+ | |5*8| | ||
Positive integer values may also be expressed in binary (base 2), octal (base 8), and hexadecimal (base 16). Precede binary values with 0b (0b1110 = 14), octal with 0o (0o177 = 127), and hexadecimal with 0x (0xff = 255). | Positive integer values may also be expressed in binary (base 2), octal (base 8), and hexadecimal (base 16). Precede binary values with 0b (0b1110 = 14), octal with 0o (0o177 = 127), and hexadecimal with 0x (0xff = 255). | ||