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.
This commit is contained in:
Martin 2019-10-14 19:55:55 +02:00 committed by Ryan Cavanaugh
parent c2f2ac1d0b
commit b7c85c7382

4
src/lib/es5.d.ts vendored
View File

@ -682,8 +682,8 @@ interface Math {
/** Returns a pseudorandom number between 0 and 1. */
random(): number;
/**
* Returns a supplied numeric expression rounded to the nearest number.
* @param x The value to be rounded to the nearest number.
* Returns a supplied numeric expression rounded to the nearest integer.
* @param x The value to be rounded to the nearest integer.
*/
round(x: number): number;
/**