Skip to content

Commit 6fbce89

Browse files
authored
Update toFixed/toExponential/toPrecision digit range in docs to match the spec (#63516)
1 parent 2cf0420 commit 6fbce89

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/lib/es5.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -547,19 +547,19 @@ interface Number {
547547

548548
/**
549549
* Returns a string representing a number in fixed-point notation.
550-
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
550+
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 100, inclusive.
551551
*/
552552
toFixed(fractionDigits?: number): string;
553553

554554
/**
555555
* Returns a string containing a number represented in exponential notation.
556-
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
556+
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 100, inclusive.
557557
*/
558558
toExponential(fractionDigits?: number): string;
559559

560560
/**
561561
* Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
562-
* @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
562+
* @param precision Number of significant digits. Must be in the range 1 - 100, inclusive.
563563
*/
564564
toPrecision(precision?: number): string;
565565

0 commit comments

Comments
 (0)