mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-18 07:29:16 -05:00
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:
4
src/lib/es5.d.ts
vendored
4
src/lib/es5.d.ts
vendored
@@ -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;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user