sqrt()

btmux-0.6-rc4/game/text/help/cat_mux/cat_functions/sqrt() · 403 B

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

Download the archive   « Back to the archive contents

& sqrt()
 
  Syntax: sqrt(<number>)
 
  Returns the square root of <number>. <number> may be a floating 
  point number, and a floating point result is returned. <number> may 
  not be negative.
 
  Example:
  > say sqrt(2)
  You say "1.414214"
  > say sqrt(100)
  You say "10"
  > say sqrt(0)
  You say "0"
  > say sqrt(-1)
  You say "#-1 SQUARE ROOT OF NEGATIVE"
 
	See Also: power()

Site Stats

Snippets: 1791
Codebases: 571