round()

Scalar. Returns a number rounded to the specified number of digits.

Syntax

round ( value, digits )

Parameters

value

A float representing a value that needs to be rounded.

digits

The number of digits after the decimal point to round the value to.

Usage

Returns a number rounded to the specified number of digits. The value is rounded to the number of decimal points specified by the digits argument. The function follows standard rounding rules. Both arguments must be floats, and the function returns a float.

Example

round (66.778, 1) returns 66.8.