trunc - luxembourg/muxcode-clm GitHub Wiki

TRUNC()

FUNCTION: trunc(<number>)

Returns the value of <number> after truncating off any fractional value. <number> may be a floating point number, and an integer result is returned.

Examples: > say trunc(5) You say, "5" > say trunc(5.2) You say, "5" > say trunc(5.8) You say, "5" > say trunc(-5) You say, "-5" > say trunc(-5.2) You say, "-5"

Related Topics: fdiv, floor, mod, round