trunc

Description

Truncates a number to a specified precision.

Parameters

Return Type

Number

Example

number a = trunc(1.1578212823495777, 3); print("a= " + a);

Prints: a= 1.157;

See also

Peacock