diff --git a/doc/API.html b/doc/API.html index 440ad09..8643d7f 100644 --- a/doc/API.html +++ b/doc/API.html @@ -98,6 +98,7 @@ code,pre{font-family:Monaco,Consolas,"Lucida Console",monospace;
.dp() ⇒ number
+
+ Return the number of decimal places of the value of this BigNumber, or null
+ if the value of this BigNumber is ±Infinity
or NaN
.
+
+x = new BigNumber(123.45) +x.decimalPlaces() // 2 +y = new BigNumber('9.9e-101') +y.dp() // 102+ +
.floor() ⇒
BigNumber