Table of Contents

ISNAN

Function name

ISNAN

ST call

PROGRAM ISNAN_DEMO
 VAR
     REAL1,REAL2: REAL;
  END_VAR
 REAL2:= ISNAN(REAL1);
END_PROGRAM

Description

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.

Inputs

InputType Description
IN ANY_REALInput value

Outputs

OutputTypeDescription
BOOLOutput value

Application example