sign()

btmux-0.6-rc4/game/text/help/cat_mux/cat_functions/sign() · 364 B

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

Download the archive   « Back to the archive contents

& sign()
 
  Syntax: sign(<number>)
 
  Returns -1, 0, or 1 depending on whether its argument is negative, 
  zero, or positive (respectively).
 
  Example:
  > say sign(-4)                                                                     
  You say "-1"
  > say sign(4)
  You say "1"
  > say sign(0)
  You say "0"
  > say sign(-1)
  You say "-1"

Site Stats

Snippets: 1791
Codebases: 571