7.4.2 SQRT
Function
Calculate the square root
LD graphics
Parameter description
floating point number
| Interface variable | Declaration | Data type | Description |
|---|---|---|---|
| X | Var_Input | ANY_REAL | Operand |
| Function name | Return value | ANY_REAL | Output result |
warning
- ANY_REAL: including floating point numbers (REAL, LREAL)
Example
- LD example is shown in the following animation:

- ST example is shown in the following code:
OUT:=SQRT(IN1);