Skip to content

Core\BigInt

An integer with no size limit, for numbers too large for int. A Core\BigInt never changes: every calculation returns a new value.

Members

24 members.

MemberSignature
ofof(int $value): Core\BigInt
ofUintofUint(uint $value): Core\BigInt
parseparse(string $text, { radix?: uint }): Core\BigInt
plusplus(Core\BigInt $other): Core\BigInt
minusminus(Core\BigInt $other): Core\BigInt
multipliedBymultipliedBy(Core\BigInt $other): Core\BigInt
dividedBydividedBy(Core\BigInt $divisor): Core\BigInt
remainderremainder(Core\BigInt $divisor): Core\BigInt
raisedToraisedTo(uint $exponent): Core\BigInt
raisedToModuloraisedToModulo(Core\BigInt $exponent, Core\BigInt $modulus): Core\BigInt
sqrtsqrt(): Core\BigInt
gcdgcd(Core\BigInt $other): Core\BigInt
lcmlcm(Core\BigInt $other): Core\BigInt
negatednegated(): Core\BigInt
absabs(): Core\BigInt
shiftedLeftshiftedLeft(uint $bits): Core\BigInt
shiftedRightshiftedRight(uint $bits): Core\BigInt
signsign(): int
compareTocompareTo(Core\BigInt $other): int
toInttoInt(): int
toUinttoUint(): uint
toDecimaltoDecimal(): decimal
toStringtoString(): string
formatformat({ radix?: uint }): string