limitMacros man page

limitMacros — 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)())

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

#define QL_NULL_REAL ((std::numeric_limits<float>::max)())

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

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

Defines the value of the largest representable negative integer value

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

Defines the value of the largest representable integer value

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

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

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

Defines the value of the smallest representable positive double value

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

Defines the value of the largest representable floating-point value

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

Defines the machine precision for operations over doubles

Examples: CallableBonds.cpp.

Author

Generated automatically by Doxygen for QuantLib from the source code.

Referenced By

QL_EPSILON(3), QL_MAX_INTEGER(3), QL_MAX_REAL(3), QL_MIN_INTEGER(3), QL_MIN_POSITIVE_REAL(3) and QL_MIN_REAL(3) are aliases of limitMacros(3).

Fri Sep 23 2016 Version 1.8.1 QuantLib