Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

document .gcd() and .bitLength()

  • Loading branch information...
commit 4e3c6c790ddfd85ae7a30d65238fbc9cbe7a10c2 1 parent 237e72b
@substack authored
Showing with 17 additions and 5 deletions.
  1. +17 −5 README.markdown
View
22 README.markdown
@@ -253,21 +253,33 @@ Return the next prime greater than `this` using
Return a new `bigint` that is the square root. This truncates.
.root(n)
--------
+--------
Return a new `bigint` that is the `nth` root. This truncates.
.shiftLeft(n)
--------
+-------------
-Return a new `bigint` that is the `2^n` multiple. Equivalent of the <<
+Return a new `bigint` that is the `2^n` multiple. Equivalent of the `<<`
operator.
.shiftRight(n)
--------
+--------------
Return a new `bigint` of the value integer divided by
-`2^n`. Equivalent of the >> operator.
+`2^n`. Equivalent of the `>>` operator.
+
+.gcd(n)
+-------
+
+Return the greatest common divisor of the current bigint with `n` as a new
+bigint.
+
+.bitLength()
+------------
+
+Return the number of bits used to represent the current bigint as a javascript
+Number.
install
=======
Please sign in to comment.
Something went wrong with that request. Please try again.