From c85251f8e91ed457f60f96886208f7f5231a1e3e Mon Sep 17 00:00:00 2001 From: Kirill Fomichev Date: Sat, 2 Nov 2019 08:43:29 +0700 Subject: [PATCH] Add documentation for max/min (#232) --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 78d91eb..83030ba 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,8 @@ either `le` (little-endian) or `be` (big-endian). * `a.toTwos(width)` - convert to two's complement representation, where `width` is bit width * `a.fromTwos(width)` - convert from two's complement representation, where `width` is the bit width * `BN.isBN(object)` - returns true if the supplied `object` is a BN.js instance +* `BN.max(a, b)` - return `a` if `a` bigger than `b` +* `BN.min(a, b)` - return `a` if `a` less than `b` ### Arithmetics