round

Round the number to the nearest value.

Parameters:

No. Type Comments
1 floatType or double Valued to be round’ed

Returns:

int - If input is floatType

or

long - If input is double

Usages:

  • round( v : double ) : long
  • round( v : float ) : int