Numeric limits


Detailed Description

Some compilers do not give an implementation of yet. For the code to be portable these macros should be used instead of the corresponding method of std::numeric_limits or the corresponding macro defined in <limits.h>.


Defines

#define QL_MIN_INT   ((std::numeric_limits<int>::min)())
#define QL_MAX_INT   ((std::numeric_limits<int>::max)())
#define QL_MIN_DOUBLE   -((std::numeric_limits<double>::max)())
#define QL_MIN_POSITIVE_DOUBLE   ((std::numeric_limits<double>::min)())
#define QL_MAX_DOUBLE   ((std::numeric_limits<double>::max)())
#define QL_EPSILON   ((std::numeric_limits<double>::epsilon)())


Define Documentation

#define QL_MIN_INT   ((std::numeric_limits<int>::min)())
 

Defines the value of the largest representable negative integer value

#define QL_MAX_INT   ((std::numeric_limits<int>::max)())
 

Defines the value of the largest representable integer value

#define QL_MIN_DOUBLE   -((std::numeric_limits<double>::max)())
 

Defines the value of the largest representable negative double value

#define QL_MIN_POSITIVE_DOUBLE   ((std::numeric_limits<double>::min)())
 

Defines the value of the smallest representable positive double value

#define QL_MAX_DOUBLE   ((std::numeric_limits<double>::max)())
 

Defines the value of the largest representable double value

#define QL_EPSILON   ((std::numeric_limits<double>::epsilon)())
 

Defines the machine precision for operations over doubles


QuantLib.org
QuantLib
Hosted by
SourceForge.net Logo
Documentation generated by
doxygen