Math > Math.round

Math.round

Syntax

Math.round(x);

Arguments

x Any number.

Description

Method; rounds the value of the argument x up or down to the nearest integer and returns the value.

Player

Flash 5 or later. In the Flash 4 Player, the methods and properties of the Math object are emulated using approximations and may not be as accurate as the non-emulated math functions supported by the Flash 5 Player.