mathLib.sqrt

The math function mathLib.sqrt returns the square root of a number. The function operates on any number that is greater than or equal to zero.


mathLib.sqrt syntax diagram

result

Any numeric or HEX item, as described in Mathematical (system words). The value returned by the mathLib.sqrt function is converted to the format of result and returned in result.

numericItem

Any numeric or HEX item, as described in Mathematical (system words). The item is converted to double-precision floating-point before result is calculated.

Example

  result = mathLib.sqrt(myItem);

Related reference
Mathematical (system words)