Documentation

NEG

Function name

NEG

ST call

PROGRAM NEG_DEMO
VAR
REAL1,REAL2: REAL;
END_VAR
REAL2:= NEG(REAL1);
END_PROGRAM

Description

The function negates the input.

Inputs

Input Type Description
IN ANY_NUMBER Input value

Outputs

Output Type Description
=> ANY_NUMBER Output value

Application example