round

Description

Rounds a number to a specified number of digits.

Parameters

Return Type

Number

Example

number a = round(2.36547, 2); print("a= " + a);

Prints: a= 2.37;

See also

Peacock