Return a new bignum with the absolute value of the instance.
Return a new bignum containing the instance value plus n.
Return a new bignum with the instance value bitwise AND (&)-ed with n.
Return the number of bits used to represent the current bignum.
Compare the instance value to n.
Compare the instance value to n.
a positive integer if > n, a negative integer if < n, and 0 if == n.
Return a new bignum containing the instance value integrally divided by n.
Return a boolean: whether the instance value is equal to n (== n).
Return the greatest common divisor of the current bignum with n as a new bignum.
Return a boolean: whether the instance value is greater than or equal to n (>= n).
Return a boolean: whether the instance value is greater than n (> n).
Compute the multiplicative inverse modulo m.
Return the Jacobi symbol (or Legendre symbol if n is prime) of the current bignum (= a) over n.
Return the Jacobi symbol (or Legendre symbol if n is prime) of the current bignum (= a) over n. Note that n must be odd and >= 3. 0 <= a < n. Returns -1 or 1 as an int (NOT a bignum). Throws an error on failure.
Return a boolean: whether the instance value is less than or equal to n (<= n).
Return a boolean: whether the instance value is less than n (< n).
Return a new bignum with the instance value modulo n.
Return a new bignum containing the instance value multiplied by n.
Return a new bignum with the negative of the instance value.
Return a new bignum with the instance value bitwise inclusive-OR (|)-ed with n.
Return a new bignum with the instance value raised to the nth power.
Return a new bignum with the instance value raised to the nth power modulo m.
Return whether the bignum is: * certainly prime (true) * probably prime ('maybe') * certainly composite (false)
If upperBound is supplied, return a random bignum between the instance value and upperBound - 1, inclusive.
If upperBound is supplied, return a random bignum between the instance value and upperBound - 1, inclusive.
Otherwise, return a random bignum between 0 and the instance value - 1, inclusive.
the upper-bound
Return a new bignum that is the nth root.
Return a new bignum that is the nth root. This truncates.
Return a new bignum that is the
Return a new bignum that is the
2^n
multiple. Equivalent of the << operator.
2^n }}}
Return a new bignum of the value integer divided by
Return a new bignum of the value integer divided by
2^n
. Equivalent of the >> operator.
2^n }}}
Return a new bignum that is the square root.
Return a new bignum that is the square root. This truncates.
Return a new bignum containing the instance value minus n.
Turn a bignum into a Number.
Turn a bignum into a Number. If the bignum is too big you'll lose precision or you'll get ±Infinity.
Print out the bignum instance in the requested base as a string.
Print out the bignum instance in the requested base as a string.
the given base
the requested base as a string
Return a new bignum with the instance value bitwise exclusive-OR
Return a new bignum with the instance value bitwise exclusive-OR
(^)
-ed with n.
(^) }}}
Arbitrary-precision integer arithmetic using OpenSSL
0.12.5
https://www.npmjs.com/package/bignum