QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
Macros
Numeric limits

Macros

#define QL_MIN_INTEGER   ((std::numeric_limits<QL_INTEGER>::min)())
 
#define QL_MAX_INTEGER   ((std::numeric_limits<QL_INTEGER>::max)())
 
#define QL_MIN_REAL   -((std::numeric_limits<QL_REAL>::max)())
 
#define QL_MIN_POSITIVE_REAL   ((std::numeric_limits<QL_REAL>::min)())
 
#define QL_MAX_REAL   ((std::numeric_limits<QL_REAL>::max)())
 
#define QL_EPSILON   ((std::numeric_limits<QL_REAL>::epsilon)())
 

Detailed Description

Some compilers do not give an implementation of <limits> 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>.

Macro Definition Documentation

◆ QL_MIN_INTEGER

#define QL_MIN_INTEGER   ((std::numeric_limits<QL_INTEGER>::min)())

Defines the value of the largest representable negative integer value

Definition at line 173 of file qldefines.hpp.

◆ QL_MAX_INTEGER

#define QL_MAX_INTEGER   ((std::numeric_limits<QL_INTEGER>::max)())

Defines the value of the largest representable integer value

Definition at line 174 of file qldefines.hpp.

◆ QL_MIN_REAL

#define QL_MIN_REAL   -((std::numeric_limits<QL_REAL>::max)())

Defines the value of the largest representable negative floating-point value

Definition at line 175 of file qldefines.hpp.

◆ QL_MIN_POSITIVE_REAL

#define QL_MIN_POSITIVE_REAL   ((std::numeric_limits<QL_REAL>::min)())

Defines the value of the smallest representable positive double value

Definition at line 177 of file qldefines.hpp.

◆ QL_MAX_REAL

#define QL_MAX_REAL   ((std::numeric_limits<QL_REAL>::max)())

Defines the value of the largest representable floating-point value

Definition at line 176 of file qldefines.hpp.

◆ QL_EPSILON

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

Defines the machine precision for operations over doubles

Examples
CallableBonds.cpp.

Definition at line 178 of file qldefines.hpp.