1Numeric limits(3) QuantLib Numeric limits(3)
2
3
4
6 Numeric limits -
7
9 Some compilers do not give an implementation of <limits> yet. For the
10 code to be portable these macros should be used instead of the
11 corresponding method of std::numeric_limits or the corresponding macro
12 defined in <limits.h>.
13
14 Defines
15 #define QL_MIN_INTEGER ((std::numeric_limits<QL_INTEGER>::min)())
16 #define QL_MAX_INTEGER ((std::numeric_limits<QL_INTEGER>::max)())
17 #define QL_MIN_REAL -((std::numeric_limits<QL_REAL>::max)())
18 #define QL_MIN_POSITIVE_REAL ((std::numeric_limits<QL_REAL>::min)())
19 #define QL_MAX_REAL ((std::numeric_limits<QL_REAL>::max)())
20 #define QL_EPSILON ((std::numeric_limits<QL_REAL>::epsilon)())
21 #define QL_NULL_INTEGER ((std::numeric_limits<int>::max)())
22 #define QL_NULL_REAL ((std::numeric_limits<float>::max)())
23
25 #define QL_MIN_INTEGER ((std::numeric_limits<QL_INTEGER>::min)())
26 Defines the value of the largest representable negative integer value
27
28 #define QL_MAX_INTEGER ((std::numeric_limits<QL_INTEGER>::max)())
29 Defines the value of the largest representable integer value
30
31 #define QL_MIN_REAL -((std::numeric_limits<QL_REAL>::max)())
32 Defines the value of the largest representable negative floating-point
33 value
34
35 #define QL_MIN_POSITIVE_REAL ((std::numeric_limits<QL_REAL>::min)())
36 Defines the value of the smallest representable positive double value
37
38 #define QL_MAX_REAL ((std::numeric_limits<QL_REAL>::max)())
39 Defines the value of the largest representable floating-point value
40
41 #define QL_EPSILON ((std::numeric_limits<QL_REAL>::epsilon)())
42 Defines the machine precision for operations over doubles
43
44
45
46Version 0.8.1 29 Oct 2007 Numeric limits(3)