📝 Edit page
➕ Add page
Numbers
This is all in Python 3.
Float
1.2
0.2
# Or simply
.2
Integer
123
Use an underscore for readibility
10_000_000_000
Division
Integer division always retursn a float.
>>> 2/2
1.0
>>> 123 / 2
61.5
Floor divison
>>> 123 // 2
61
Binary
>>> 0b101
5
Operators
>>
<<
&
|
Hexidecimal
>>> 0x101
257
>> 0x10_0000_0000_0000
4503599627370496