round

The round method rounds a number the nearest integer.

 

Syntax

System.Int32 round(System.Double x);

 

Parameters

x

number to round

 

Return Value

Returns the the nearest integer.

 

Remarks

Member of Math.

 

Example