diff --git a/doc/bigAPI.html b/doc/bigAPI.html index e1a8dbd..67035f5 100644 --- a/doc/bigAPI.html +++ b/doc/bigAPI.html @@ -656,10 +656,14 @@
.toExponential(dp) ⇒
+ toExponential.toExponential(dp, rm) ⇒
string
dp
? : number : integer, 0 to 1e+6 inclusive
+ dp
? : number : integer, 0 to 1e+6 inclusive
+
+ rm
? : number : 0, 1, 2 or 3
+
Returns a string representing the value of this Big number in exponential
notation to a fixed number of dp
decimal places.
@@ -668,7 +672,7 @@
dp
, the
return value will be rounded to dp
decimal places using
- rounding mode Big.RM
.
+ rounding mode rm
.
If the value of this Big number in exponential notation has fewer digits @@ -678,10 +682,12 @@
If dp
is omitted or is undefined, the number of digits
after the decimal point defaults to the minimum number of digits
- necessary to represent the value exactly.
+ necessary to represent the value exactly.
+ if rm
is omitted or is undefined, the current
+ Big.RM
setting is used.
- Throws if dp
is invalid.
+ Throws if dp
or rm
is invalid.
x = 45.6 @@ -698,11 +704,13 @@
- toFixed
.toFixed(dp) ⇒ + toFixed
.toFixed(dp, rm) ⇒ string
dp
? : number : integer, 0 to 1e+6 inclusive +
+rm
? : number : 0, 1, 2 or 3Returns a string representing the value of this Big number in normal @@ -712,7 +720,7 @@
If the value of this Big number in normal notation has more digits to the right of the decimal point than is specified by
dp
, the return value will be rounded todp
decimal places using - rounding modeBig.RM
. + rounding moderm
.If the value of this Big number in normal notation has fewer fraction @@ -728,10 +736,12 @@
If
dp
is omitted or is undefined, the return value is simply the value in normal notation. This is also unlikeNumber.prototype.toFixed
, which returns the value to zero - decimal places. + decimal places.
+ ifrm
is omitted or is undefined, the current +Big.RM
setting is used.- Throws if
dp
is invalid. + Throws ifdp
orrm
is invalid.x = 45.6 @@ -745,10 +755,14 @@
- toPrecision
-.toPrecision(sd) ⇒ + toPrecision
.toPrecision(sd, rm) ⇒ string
+
sd
? : number : integer, 1 to 1e+6 inclusive+
sd
? : number : integer, 1 to 1e+6 inclusive +
+rm
? : number : 0, 1, 2 or 3 +Returns a string representing the value of this Big number to the specified number of
sd
significant digits. @@ -757,7 +771,7 @@If the value of this Big number has more digits than is specified by
sd
, the return value will be rounded tosd
significant digits using rounding mode -Big.RM
. +rm
.If the value of this Big number has fewer digits than is specified by @@ -770,10 +784,12 @@
If
sd
is omitted or is undefined, the return value is - the same as.toString()
. + the same as.toString()
.
+ ifrm
is omitted or is undefined, the current +Big.RM
setting is used.- Throws if
sd
is invalid. + Throws ifsd
orrm
is invalid.x = 45.6