☰
integer
integer
Functions
convert this to a decimal number in a string. If negative, add "-" as
the first character.
the first character.
convert this to a number using the given base. If negative, add "-" as
the first character.
the first character.
convert this to a number using the given base. If negative, add "-" as
the first character. Extend with leading "0" until the length is at
least len
the first character. Extend with leading "0" until the length is at
least len
bitwise operations
shift operations
bitwise NOT
bitwise NOT (Unicode alias)
check if this type of integer is bounded
returns false unless redefined by a specific implementation of integer
returns false unless redefined by a specific implementation of integer
greatest common divisor of this and b
note that this assumes zero to be divisible by any positive integer.
note that this assumes zero to be divisible by any positive integer.
create a fraction
create a fraction via unicode fraction slash \u2044 '⁄ '
integer is the abstract ancestor of integer numbers that provides operations
from numeric plus a devision remainder operation %, bitwise logical operations,
shift operations and gcd. Also, integers can be used to build fractions.