From b7c85c738281dd8dd7d17c73abd9eaef8fd03b6d Mon Sep 17 00:00:00 2001 From: Martin Date: Mon, 14 Oct 2019 19:55:55 +0200 Subject: [PATCH] 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. --- src/lib/es5.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/es5.d.ts b/src/lib/es5.d.ts index 99acdcf8b8e..1be8d331a6f 100644 --- a/src/lib/es5.d.ts +++ b/src/lib/es5.d.ts @@ -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; /**