1 /* Characteristics of floating types <float.h>
3 This file is part of the Public Domain C Library (PDCLib).
4 Permission is granted to use, modify, and / or redistribute at will.
7 #ifndef _PDCLIB_FLOAT_H
8 #define _PDCLIB_FLOAT_H _PDCLIB_FLOAT_H
9 #include "_PDCLIB_float.h"
11 #define FLT_ROUNDS _PDCLIB_FLT_ROUNDS
12 #define FLT_EVAL_METHOD _PDCLIB_FLT_EVAL_METHOD
13 #define DECIMAL_DIG _PDCLIB_DECIMAL_DIG
15 /* Radix of exponent representation */
16 #define FLT_RADIX _PDCLIB_FLT_RADIX
18 /* Number of base-FLT_RADIX digits in the significand of a float */
19 #define FLT_MANT_DIG _PDCLIB_FLT_MANT_DIG
21 /* Number of decimal digits of precision in a float */
22 #define FLT_DIG _PDCLIB_FLT_DIG
24 /* Difference between 1.0 and the minimum float greater than 1.0 */
25 #define FLT_EPSILON _PDCLIB_FLT_EPSILON
27 /* Minimum int x such that FLT_RADIX**(x-1) is a normalised float */
28 #define FLT_MIN_EXP _PDCLIB_FLT_MIN_EXP
30 /* Minimum normalised float */
31 #define FLT_MIN _PDCLIB_FLT_MIN
33 /* Minimum int x such that 10**x is a normalised float */
34 #define FLT_MIN_10_EXP _PDCLIB_FLT_MIN_10_EXP
36 /* Maximum int x such that FLT_RADIX**(x-1) is a representable float */
37 #define FLT_MAX_EXP _PDCLIB_FLT_MAX_EXP
40 #define FLT_MAX _PDCLIB_FLT_MAX
42 /* Maximum int x such that 10**x is a representable float */
43 #define FLT_MAX_10_EXP _PDCLIB_FLT_MAX_10_EXP
46 /* Number of base-FLT_RADIX digits in the significand of a double */
47 #define DBL_MANT_DIG _PDCLIB_DBL_MANT_DIG
49 /* Number of decimal digits of precision in a double */
50 #define DBL_DIG _PDCLIB_DBL_DIG
52 /* Difference between 1.0 and the minimum double greater than 1.0 */
53 #define DBL_EPSILON _PDCLIB_DBL_EPSILON
55 /* Minimum int x such that FLT_RADIX**(x-1) is a normalised double */
56 #define DBL_MIN_EXP _PDCLIB_DBL_MIN_EXP
58 /* Minimum normalised double */
59 #define DBL_MIN _PDCLIB_DBL_MIN
61 /* Minimum int x such that 10**x is a normalised double */
62 #define DBL_MIN_10_EXP _PDCLIB_DBL_MIN_10_EXP
64 /* Maximum int x such that FLT_RADIX**(x-1) is a representable double */
65 #define DBL_MAX_EXP _PDCLIB_DBL_MAX_EXP
68 #define DBL_MAX _PDCLIB_DBL_MAX
70 /* Maximum int x such that 10**x is a representable double */
71 #define DBL_MAX_10_EXP _PDCLIB_DBL_MAX_10_EXP
74 /* Number of base-FLT_RADIX digits in the significand of a long double */
75 #define LDBL_MANT_DIG _PDCLIB_LDBL_MANT_DIG
77 /* Number of decimal digits of precision in a long double */
78 #define LDBL_DIG _PDCLIB_LDBL_DIG
80 /* Difference between 1.0 and the minimum long double greater than 1.0 */
81 #define LDBL_EPSILON _PDCLIB_LDBL_EPSILON
83 /* Minimum int x such that FLT_RADIX**(x-1) is a normalised long double */
84 #define LDBL_MIN_EXP _PDCLIB_LDBL_MIN_EXP
86 /* Minimum normalised long double */
87 #define LDBL_MIN _PDCLIB_LDBL_MIN
89 /* Minimum int x such that 10**x is a normalised long double */
90 #define LDBL_MIN_10_EXP _PDCLIB_LDBL_MIN_10_EXP
92 /* Maximum int x such that FLT_RADIX**(x-1) is a representable long double */
93 #define LDBL_MAX_EXP _PDCLIB_LDBL_MAX_EXP
95 /* Maximum long double */
96 #define LDBL_MAX _PDCLIB_LDBL_MAX
98 /* Maximum int x such that 10**x is a representable long double */
99 #define LDBL_MAX_10_EXP _PDCLIB_LDBL_MAX_10_EXP