Round()

Summary

Returns a value rounded to a specified number of decimal places.

Syntax

rounded_value = Round(real input_value, integer n_decimals)

Argument Contents
input_value Any number
n_decimals The number of decimal places to which the number should be rounded

Returns

A real number equal to input_value rounded to n_decimals places.

Example

val1 = Round(123.4567, 2) // val1 = 123.46
val2 = Round(123.4567, 0) // val2 = 123.0

See Also

Function Summary
Ceil() Returns the next larger integer after a value
Floor() Returns the next smaller integer before a value
RealToInt() Converts a real number to an integer