Javascript Reference
Categories: Math

javascript Math round( )

@April 13, 2009, 2:36 a.m.
round( ) Firefox/Netscape/NN 2 IE 3 ECMA 1  

round(number)

  

Returns an integer that follows rounding rules. If the value of the passed parameter is greater than or equal to x.5, the returned value is x + 1; otherwise, the returned value is x.

 
Parameters
 
  • Any number.
 
Returned Value

Integer.


Powered by Linode.