/
trunc
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
, multiple selections available,
Related content
trunc
More like this
round
More like this
round
More like this
trunc
More like this
formatNumber
formatNumber
More like this
formatNumber
formatNumber
More like this