@@ -656,10 +656,14 @@ <h5 id="times">
656656
657657
658658 < h5 id ="toE ">
659- toExponential< code class ='inset '> .toExponential(dp) ⇒
659+ toExponential< code class ='inset '> .toExponential(dp, rm ) ⇒
660660 < i > string</ i > </ code >
661661 </ h5 >
662- < p > < code > dp</ code > ? : < i > number</ i > : integer, 0 to 1e+6 inclusive</ p >
662+ < p >
663+ < code > dp</ code > ? : < i > number</ i > : integer, 0 to 1e+6 inclusive
664+ < br />
665+ < code > rm</ code > ? : < i > number</ i > : 0, 1, 2 or 3
666+ </ p >
663667 < p >
664668 Returns a string representing the value of this Big number in exponential
665669 notation to a fixed number of < code > dp</ code > decimal places.
@@ -668,7 +672,7 @@ <h5 id="toE">
668672 If the value of this Big number in exponential notation has more digits to
669673 the right of the decimal point than is specified by < code > dp</ code > , the
670674 return value will be rounded to < code > dp</ code > decimal places using
671- rounding mode < a href ='#rm '> < code > Big.RM </ code > </ a > .
675+ rounding mode < a href ='#rm '> < code > rm </ code > </ a > .
672676 </ p >
673677 < p >
674678 If the value of this Big number in exponential notation has fewer digits
@@ -678,10 +682,12 @@ <h5 id="toE">
678682 < p >
679683 If < code > dp</ code > is omitted or is undefined, the number of digits
680684 after the decimal point defaults to the minimum number of digits
681- necessary to represent the value exactly.
685+ necessary to represent the value exactly.< br />
686+ if < code > rm</ code > is omitted or is undefined, the current
687+ < a href ='#rm '> < code > Big.RM</ code > </ a > setting is used.
682688 </ p >
683689 < p >
684- Throws if < code > dp</ code > is invalid.
690+ Throws if < code > dp</ code > or < code > rm </ code > is invalid.
685691 </ p >
686692 < pre >
687693x = 45.6
@@ -698,11 +704,13 @@ <h5 id="toE">
698704
699705
700706 < h5 id ="toF ">
701- toFixed< code class ='inset '> .toFixed(dp) ⇒
707+ toFixed< code class ='inset '> .toFixed(dp, rm ) ⇒
702708 < i > string</ i > </ code >
703709 </ h5 >
704710 < p >
705711 < code > dp</ code > ? : < i > number</ i > : integer, 0 to 1e+6 inclusive
712+ < br />
713+ < code > rm</ code > ? : < i > number</ i > : 0, 1, 2 or 3
706714 </ p >
707715 < p >
708716 Returns a string representing the value of this Big number in normal
@@ -712,7 +720,7 @@ <h5 id="toF">
712720 If the value of this Big number in normal notation has more digits to the
713721 right of the decimal point than is specified by < code > dp</ code > , the
714722 return value will be rounded to < code > dp</ code > decimal places using
715- rounding mode < a href ='#rm '> < code > Big.RM </ code > </ a > .
723+ rounding mode < a href ='#rm '> < code > rm </ code > </ a > .
716724 </ p >
717725 < p >
718726 If the value of this Big number in normal notation has fewer fraction
@@ -728,10 +736,12 @@ <h5 id="toF">
728736 If < code > dp</ code > is omitted or is undefined, the return value is
729737 simply the value in normal notation. This is also unlike
730738 < code > Number.prototype.toFixed</ code > , which returns the value to zero
731- decimal places.
739+ decimal places.< br />
740+ if < code > rm</ code > is omitted or is undefined, the current
741+ < a href ='#rm '> < code > Big.RM</ code > </ a > setting is used.
732742 </ p >
733743 < p >
734- Throws if < code > dp</ code > is invalid.
744+ Throws if < code > dp</ code > or < code > rm </ code > is invalid.
735745 </ p >
736746 < pre >
737747x = 45.6
@@ -745,10 +755,14 @@ <h5 id="toF">
745755
746756
747757 < h5 id ="toP ">
748- toPrecision< code class ='inset '> .toPrecision(sd) ⇒
758+ toPrecision< code class ='inset '> .toPrecision(sd, rm ) ⇒
749759 < i > string</ i > </ code >
750760 </ h5 >
751- < p > < code > sd</ code > ? : < i > number</ i > : integer, 1 to 1e+6 inclusive</ p >
761+ < p >
762+ < code > sd</ code > ? : < i > number</ i > : integer, 1 to 1e+6 inclusive
763+ < br />
764+ < code > rm</ code > ? : < i > number</ i > : 0, 1, 2 or 3
765+ </ p >
752766 < p >
753767 Returns a string representing the value of this Big number to the
754768 specified number of < code > sd</ code > significant digits.
@@ -757,7 +771,7 @@ <h5 id="toP">
757771 If the value of this Big number has more digits than is specified by
758772 < code > sd</ code > , the return value will be rounded to < code > sd</ code >
759773 significant digits using rounding mode
760- < a href ='#rm '> < code > Big.RM </ code > </ a > .
774+ < a href ='#rm '> < code > rm </ code > </ a > .
761775 </ p >
762776 < p >
763777 If the value of this Big number has fewer digits than is specified by
@@ -770,10 +784,12 @@ <h5 id="toP">
770784 </ p >
771785 < p >
772786 If < code > sd</ code > is omitted or is undefined, the return value is
773- the same as < code > .toString()</ code > .
787+ the same as < code > .toString()</ code > .< br />
788+ if < code > rm</ code > is omitted or is undefined, the current
789+ < a href ='#rm '> < code > Big.RM</ code > </ a > setting is used.
774790 </ p >
775791 < p >
776- Throws if < code > sd</ code > is invalid.
792+ Throws if < code > sd</ code > or < code > rm </ code > is invalid.
777793 </ p >
778794 < pre >
779795x = 45.6
0 commit comments