Skip to main content

Operator: SQRT

The IEC operator yields the square root of a number.

Permitted data types for input variables: any numeric basic data type

Permitted data types for output variables: REAL and LREAL

Example 137. Examples

Result in q: 4

ST

q := SQRT(16);

FBD

_cds_img_sqrt.png