QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
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)()) |
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>
.
#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.
#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.
#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.
#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.
#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.
#define QL_EPSILON ((std::numeric_limits<QL_REAL>::epsilon)()) |
Defines the machine precision for operations over doubles
Definition at line 178 of file qldefines.hpp.