Skip to content

Latest commit

 

History

History
97 lines (79 loc) · 776 Bytes

File metadata and controls

97 lines (79 loc) · 776 Bytes

Numeric operations

x + y
x - y
x * y
x / y
x // y
x % y
-x
+x
abs(x)
int(x)
float(x)
complex(re, im)
c.conjugate()
divmod(x, y)
pow(x, y)
x ** y

Numeric operations

math.trunc(x)
round(x[, n])
math.floor(x)
math.ceil(x)

Operators

# Boolean operators
x or y
x and y
not x

# Comparison
<
<=
>
>=
==
!=
is
is not

Bitwise

x | y
x ^ y
x & y
x << n
x >> n
~x

More: https://docs.python.org/3/library/stdtypes.html

Numeric operations

Numeric operations

Numeric operations

Numeric operations

Numeric operations

Numeric operations

Numeric operations

Numeric operations

Numeric operations