ABS
PROGRAM ABS_DEMO VAR REAL1,REAL2: REAL; END_VAR REAL2:= ABS(IN:=REAL1); END_PROGRAM
Returns the absolute value of a number. An absolute value is a number of the same size but with no sign.
Input | Type | Description |
IN | ANY_NUM | Input value |
Output | Type | Description |
⇒ | ANY_NUM | Output value |