squareroot

From RPTools Wiki
Revision as of 23:59, 14 March 2023 by Taustin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

squareroot() Function

Returns the square root of a number.

Usage

[h: num = squareroot(number)]
[h: num = sqrt(number, precision)]

Parameters

  • number - Value to determine the square root of.
  • precision - Number of decimal points. Defaults to 10.

Example

[r: squareroot(9)]
[r: squareroot(80)]
[r: sqrt(10,2)]

Returns

  3  
  8.9442719100  
  3.16