mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06: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:
parent
c2f2ac1d0b
commit
b7c85c7382
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;
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user