numeric.round()

Rounds a number to the closest integer.

numeric.round( [ precision ] )

Returns: Number

Argument Description
precision
number, optional

Number of decimal points to round to

Examples

writeDump(1.56.round());
	writeDump(1.49.round());
	writeDump(-0.44.round());

See also