ISNAN

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.

InputType Description
IN ANY_REALInput value
OutputTypeDescription
BOOLOutput value

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