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.
| Member | Signature |
|---|---|
of | of(int $value): Core\BigInt |
ofUint | ofUint(uint $value): Core\BigInt |
parse | parse(string $text, { radix?: uint }): Core\BigInt |
plus | plus(Core\BigInt $other): Core\BigInt |
minus | minus(Core\BigInt $other): Core\BigInt |
multipliedBy | multipliedBy(Core\BigInt $other): Core\BigInt |
dividedBy | dividedBy(Core\BigInt $divisor): Core\BigInt |
remainder | remainder(Core\BigInt $divisor): Core\BigInt |
raisedTo | raisedTo(uint $exponent): Core\BigInt |
raisedToModulo | raisedToModulo(Core\BigInt $exponent, Core\BigInt $modulus): Core\BigInt |
sqrt | sqrt(): Core\BigInt |
gcd | gcd(Core\BigInt $other): Core\BigInt |
lcm | lcm(Core\BigInt $other): Core\BigInt |
negated | negated(): Core\BigInt |
abs | abs(): Core\BigInt |
shiftedLeft | shiftedLeft(uint $bits): Core\BigInt |
shiftedRight | shiftedRight(uint $bits): Core\BigInt |
sign | sign(): int |
compareTo | compareTo(Core\BigInt $other): int |
toInt | toInt(): int |
toUint | toUint(): uint |
toDecimal | toDecimal(): decimal |
toString | toString(): string |
format | format({ radix?: uint }): string |
