trunc()
btmux-0.6-rc4/game/text/help/cat_mux/cat_functions/trunc() · 437 B
From the archive btonline-btechmux-0.6-rc4.tbz2
Download the archive « Back to the archive contents
& trunc() Syntax: trunc(<number>) Returns the value of <number> after truncating any fractional value. <number> may be a floating point number, and an integer result is returned. Example: > 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" See Also: div(), floor(), mod(), round()