ABS

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.

InputType Description
IN ANY_NUMInput value
OutputType Description
ANY_NUMOutput value

  • © Energocentrum Plus, s.r.o. 2017 - 2024