2.5.4.99 Sqrt

The Sqrt function performs a square root calculation.

ABNF:

 Sqrt = val " SQRT():128"

Required Arguments:

Name: Number

Type: vDouble

An argument that specifies the operand of the calculation.

Return Value:

Type: vNum, PtgErr

This function returns a vNum containing the square root of Number. The unit of the return value is equal to the unit of Number. If the dimension of Number is greater than 2, the function returns a PtgNumMultiDim with value equal to the square root of Number, unit equal to the unit of Number, and dimension equal to the dimension of Number divided by 2. If Number is less than 0, the function returns a PtgErr with an error code of #NUM!. If the dimension of Number is not divisible by two, the function returns a PtgErr with an error code of #DIM!.