mod()

btmux-0.6-rc4/game/text/help/cat_mux/cat_functions/mod() · 350 B

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

Download the archive   « Back to the archive contents

& mod()
 
  Syntax: mod(<integer1>,<integer2>)
 
  Returns the integer remainder from dividing <integer1> by 
  <integer2>.
 
  Example:
 
  > say mod(15,3)
  You say "0"
  > say mod(16,3)
  You say "1"
  > say mod(17,3)
  You say "2"
  > say mod(18,3)
  You say "0"
 
	See Also: add(), fdiv(), div(), mul(), round(), sub(), trunc()

Site Stats

Snippets: 1791
Codebases: 571