ISNAN
PROGRAM ISNAN_DEMO
VAR
REAL1,REAL2: REAL;
END_VAR
REAL2:= ISNAN(REAL1);
END_PROGRAM
Compares the input variable value with NaN (Not-A-Number, i.e. the value does not represent any valid real number). Returns TRUE, if the value is NaN.
Input | Type | Description |
---|---|---|
IN | ANY_REAL | Input value |
Output | Type | Description |
---|---|---|
=> | BOOL | Output value |