integer
🌌integer
integer
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.
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
convert this to a decimal number in a string. If negative, add "-" as
the first character.
redefines Object.asString:
convert this to a number using the given base. If negative, add "-" as
the first character.
the value corresponding to v in whatever integer implementation we have, maximum in case of overflow
greatest common divisor of this and b
note that this assumes zero to be divisible by any positive integer.
division remainder
redefines numeric.infix %:
basic operations: 'infix %' (division remainder)
create a fraction
create a fraction via unicode fraction slash \u2044 '⁄ '
the constant '10' in whatever integer implementation we have, maximum in case of overflow