Returns the sum of this number and the given one.
Returns the integer bitwise-and combined with another integer.
Sets the value of bit i to 0. The least significant bit is number 0
Sets the value of multiple bits to 0. The least significant bit is number 0
Returns the one's complement.
Returns the two's complement.
Returns the result of the division of this number by the given one.
Returns the double factorial
Returns the factorial
Inverts the value of bit i. The least significant bit is number 0
Inverts the value of multiple bits. The least significant bit is number 0
Returns the greatest common divisor of this number and the given one.
Returns 0 or 1 based on the value of a bit at the provided index. The least significant bit is number 0
Returns true if the current number is greater than or equal to the provided number
Returns true if the current number is greater than the provided number
Returns true if the current number is equal to the provided number
Determines whether a number is prime using some trial divisions, then reps Miller-Rabin probabilistic primality tests.
Returns the least common multiple of this number and the given one.
Returns true if the current number is less than or equal to the provided number
Returns true if the current number is less than the provided number
Returns the product of this number and the given one.
Returns the number with inverted sign.
Identifies primes using a probabilistic algorithm; the chance of a composite passing will be extremely small.
Returns the truncated integer part of the nth root
Returns the integer bitwise-or combined with another integer.
Returns this number exponentiated to the given value.
Sets the value of bit i to 1. The least significant bit is number 0
Sets the value of multiple bits to 1. The least significant bit is number 0
Returns the integer left shifted by a given number of bits.
Returns the integer right shifted by a given number of bits.
Returns the sign of the current value (-1 or 0 or 1)
Works similarly to JS Array.slice() but on bits. The least significant bit is number 0
Returns the integer square root number, rounded down.
Returns the difference of this number and the given one.
Exports integer into an Uint8Array. Sign is ignored.
Converts the number to a floating-point number
Converts current value into a JavaScript number
Converts the number to a rational number
Converts the number to string
Creates new integer with the copy of binary representation of num to position offset. Optionally bitCount can be used to zero-pad the number to a specific number of bits. The least significant bit is number 0
Returns the integer bitwise-xor combined with another integer.
Generated using TypeDoc
Returns the absolute value of this number.