floor()

btmux-0.6-rc4/game/text/help/cat_mux/cat_functions/floor() · 432 B

From the archive btonline-btechmux-0.6-rc4.tbz2

Download the archive   « Back to the archive contents

& floor()
 
  Syntax: floor(<number>)
 
  Returns the largest integer less than or equal to <number>. <number> 
  may be a floating point number, and an integer result is returned.
 
  Example:
 
  > say floor(5)
  You say "5"
  > say floor(5.2)
  You say "5"
  > say floor(5.8)
  You say "5"
  > say floor(-5)
  You say "-5"
  > say floor(-5.2)
  You say "-6"
 
	See Also: ceil(), div(), mod(), round(), trunc()

Site Stats

Snippets: 1791
Codebases: 571