Site under construction! :3
Number (num
)ξ―
- Constructors:
number()
fraction()
- Operators
x + y
x - y
x y
x / y
x % y
x * y
-x
+x
- Bitwise operators
x | y
x ^ y
x & y
x << n
x >> n
~x
- Builtin methods
abs(x: num) -> num
ceil(x: num) -> int
divmod(x: num, y: num) -> tuple(int, int)
floor(x: num) -> int
round(x: num) -> int
trunc(x: num) -> num
- Properties
base: int
bit_length: int
bit_count: int
conjugate: num
decimal: num
dimension: int
integer: int
is_integer: bool
is_rational: bool
is_real: bool
magnitude: int
real: num
- Instance methods
to_base(x: num) -> num
Edit this page on GitHub