rounddec[]

Round to nearest.

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

Syntax

rounddec[x, dec]

Parameters

x Number to round.
dec Number of decimals.
Return Value The value of x rounded to the nearest value with specified decimals..

Examples

#<result> = rounddec[pi[], 2]
(print,#<result>)

result: 3.14

See also

round