The digits by key.
The key of the least significant digit.
The key of the most significant digit.
Creates a copy of this object in a new instance.
Removes the zeroes from the most significant side (the leading zeroes). A number of only
zeroes keeps a single 0.
Checks if this and other have the same value.
The object to compare with.
true if both have the same value.
Adds zeroes above the most significant digit (on the left of the number).
How many zeroes to add.
Shifts the digits up and adds zeroes at the lowest keys (on the right of the number),
like multiplying it by base ^ size.
How many zeroes to add.
Gets the digit at a key, 0 if there is none.
The key of the digit.
Checks if the number has no digit set at all: nothing at the key 0 and both bounds 0.
Checks if the digit at a key is 0 (or missing).
The key of the digit.
Checks if the number is a single 0: both bounds are 0 and the digit at the key 0 is 0 or missing.
Removes the most significant digit.
Moves the digits and bounds of another number into this one, without copying them. The other number is left without digits and must not be used after it.
The number to take the digits from.
Removes the digit at a key.
The key of the digit.
true if there was a digit to remove, false otherwise.
Sets the digit at a key.
The key of the digit.
The digit.
Adds the digits of another number above the most significant digit of this one.
The number whose digits are added.
Adds an offset to the digit at a key. It doesn't carry: resolveOverflow does.
The key of the digit.
The value to add (negative to subtract).
A number as a map of digits by key: the key is the power of the base, so a higher key is a more significant digit, and negative keys are the digits after the point. See
Digits.