numeric.round()

edit

Rounds a number to the closest integer.

numeric.round( precision=number )

Returns: Number

Argument Description
precision
number, optional
edit

Number of decimal points to round to

Examples

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

See also