10 15 31 IsNANorND

LANSA Technical

10.15.31 IsNANorND

Certain intrinsics may return values that are not recognised numbers. An example is ArcCosine(3.0). The value returned may be either an NAN (not a number) or an ND(non-determinate).

IsNANorNd() can be used to check a floating point number to determine if it is or is not a number. It returns a Boolean.

Input Parameters

None

Example

#afloat := (3.0).AsFloat().ArcCosine()

#afloat.IsNANorND())

 

yields true if the ArcCosine() returns a NAN.

Ý 10.15 Floating Point Intrinsic Functions