Skip to content

Commit b7c85c7

Browse files
lekoafRyanCavanaugh
authored andcommitted
Update Math.round in es5.d.ts (#33920)
Update documentation of Math.round to reflect that it turns a float in to an integer and returns an integer.
1 parent c2f2ac1 commit b7c85c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/es5.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,8 +682,8 @@ interface Math {
682682
/** Returns a pseudorandom number between 0 and 1. */
683683
random(): number;
684684
/**
685-
* Returns a supplied numeric expression rounded to the nearest number.
686-
* @param x The value to be rounded to the nearest number.
685+
* Returns a supplied numeric expression rounded to the nearest integer.
686+
* @param x The value to be rounded to the nearest integer.
687687
*/
688688
round(x: number): number;
689689
/**

0 commit comments

Comments
 (0)