From b75e2fdc45a058f25f069efe06a908b7d5aaa446 Mon Sep 17 00:00:00 2001 From: Eliott Vincent Date: Thu, 25 Jul 2019 09:31:07 +0200 Subject: [PATCH] #134 Correct documentation examples --- doc/API.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/API.html b/doc/API.html index cfdb617..81289eb 100644 --- a/doc/API.html +++ b/doc/API.html @@ -2388,8 +2388,8 @@ x.toPrecision() // '45.6' y.toPrecision() // '45.6' x.toPrecision(1) // '5e+1' y.toPrecision(1) // '5e+1' -y.toPrecision(2, Decimal.ROUND_UP) // '4.6e+1' -y.toPrecision(2, Decimal.DOWN) // '4.5e+1' +y.toPrecision(2, Decimal.ROUND_UP) // '46' +y.toPrecision(2, Decimal.ROUND_DOWN) // '45' x.toPrecision(5) // '45.600' y.toPrecision(5) // '45.600'