round[]

Round to nearest.

Returns the integral value that is nearest to x with halfway cases rounded away from zero.

Syntax

round[x]

Parameters

x Number to round.
Return Value The value of x rounded to the nearest integer.

Examples

#<result> = round[2.3]
(print,#<result>)

result: 2

See also

rounddec, floor, ceil