ConstReturns the absolute value of a given number
The value to get the absolute value of
The absolute value of the input
Returns the number of bits required to represent a given number
The number to get the bit length of
The number of bits required to represent the input number (minimum 1)
Returns the quotient of a division between two numbers, rounded up
The number to divide
The number to divide by
The quotient of the division, rounded up
Returns the quotient and remainder of a division between two numbers
The number to divide
The number to divide by
The quotient and remainder of the division
Returns the maximum of a list of numbers
The numbers to get the maximum of
The maximum of the input numbers transformed to a BigInt
Returns the minimum of a list of numbers
The numbers to get the minimum of
The minimum of the input numbers transformed to a BigInt
Returns a random number between 0 (inclusive) and a given maximum (exclusive)
The exclusive upper bound (must be positive)
A random number in the range [0, max)
Returns the quotient of a division between two numbers, rounded to the nearest integer
The number to divide
The number to divide by
The quotient of the division, rounded to the nearest integer
Returns the sign of a given number
The value to get the sign of
-1 if the value is negative, 0 if the value is 0, 1 if the value is positive
A collection of functions to perform mathematical operations on BigInts