Go to the previous, next chapter.

Machine Constants --- Constants.h

This file defines some useful machine constants, which are:

Machine Constant: REAL Machine::Epsilon
Contains the machine precision. On systems conforming the IEEE/ANSI-754-standard, this is approx. 2.2E-16.

Machine Constant: REAL Machine::MinPositive
Contains the smallest positive machine number. On systems conforming the IEEE/ANSI-754-standard, this is approx. 4.9E-324.

Machine Constant: REAL Machine::PosInfinity
Contains a value equivalent to infinity or at least a very large positive number, if infinity is not a valid REAL value.

Machine Constant: REAL Machine::NegInfinity
Contains a value equivalent to minus infinity or at least a very large negative number, if infinity is not a valid REAL value.

Machine Constant: REAL Machine::NaN
Contains a value which is not a number, if NaN is a valid REAL value.

Due to the automatic initialization of the machine constants given above, the object file belonging to Constants.h must be linked to the executable code. This is generally done automatically. If not, define in your program a global variable as e.g.

Machine MachineAutomaticInit;

to initialize the machine constants.