Contents Previous Next Subchapters

Some Predefined Constants (Mlmode)
Syntax NaN
See Also autoexec

These values are only defined in Mlmode and hence are implemented as intrinsic functions. Both these names can be used for the IEEE value plus Not A Number; i.e., the value that results from a floating point 0/0 calculation. The return value for each of these functions is a double-precision scalar. If in Mlmode you enter
     NaN == NaN
O-Matrix will respond
The function isnan should be used to check for not a number. According to the IEEE standard, the answer above should be false, but the Microsoft compiler has a bug in it and results in true for the comparison above. In fact, Harmonic Software uses the Intel compiler for compiling O-Matrix, but Intel insisted on copying the Microsoft bug for compatibility.