153
0x2A # hexadecimal literal
0o54 # octal literal
23 * 2 + 5
100 / -7
100 % -7 # -5 (unlike in some other languages)
int("18")
int
Stay organized with collections
Save and categorize content based on your preferences.
Report an issue
View source
Nightly
·
8.3
·
8.2
·
8.1
·
8.0
·
7.6
The type of integers in Starlark. Starlark integers may be of any magnitude; arithmetic is exact. Examples of integer expressions: