3 /* 7.7 Characteristics of floating types <float.h>
5 This file is part of the Public Domain C Library (PDCLib).
6 Permission is granted to use, modify, and / or redistribute at will.
9 #ifndef _PDCLIB_FLOAT_H
10 #define _PDCLIB_FLOAT_H _PDCLIB_FLOAT_H
11 #include <_PDCLIB_config.h>
13 #define FLT_ROUNDS _PDCLIB_FLT_ROUNDS
14 #define FLT_EVAL_METHOD _PDCLIB_FLT_EVAL_METHOD
15 #define DECIMAL_DIG _PDCLIB_DECIMAL_DIG
17 /* Radix of exponent representation */
18 #define FLT_RADIX __FLT_RADIX__
19 /* Number of base-FLT_RADIX digits in the significand of a float */
20 #define FLT_MANT_DIG __FLT_MANT_DIG__
21 /* Number of decimal digits of precision in a float */
22 #define FLT_DIG __FLT_DIG__
23 /* Difference between 1.0 and the minimum float greater than 1.0 */
24 #define FLT_EPSILON __FLT_EPSILON__
25 /* Minimum int x such that FLT_RADIX**(x-1) is a normalised float */
26 #define FLT_MIN_EXP __FLT_MIN_EXP__
27 /* Minimum normalised float */
28 #define FLT_MIN __FLT_MIN__
29 /* Minimum int x such that 10**x is a normalised float */
30 #define FLT_MIN_10_EXP __FLT_MIN_10_EXP__
31 /* Maximum int x such that FLT_RADIX**(x-1) is a representable float */
32 #define FLT_MAX_EXP __FLT_MAX_EXP__
34 #define FLT_MAX __FLT_MAX__
35 /* Maximum int x such that 10**x is a representable float */
36 #define FLT_MAX_10_EXP __FLT_MAX_10_EXP__
38 /* Number of base-FLT_RADIX digits in the significand of a double */
39 #define DBL_MANT_DIG __DBL_MANT_DIG__
40 /* Number of decimal digits of precision in a double */
41 #define DBL_DIG __DBL_DIG__
42 /* Difference between 1.0 and the minimum double greater than 1.0 */
43 #define DBL_EPSILON __DBL_EPSILON__
44 /* Minimum int x such that FLT_RADIX**(x-1) is a normalised double */
45 #define DBL_MIN_EXP __DBL_MIN_EXP__
46 /* Minimum normalised double */
47 #define DBL_MIN __DBL_MIN__
48 /* Minimum int x such that 10**x is a normalised double */
49 #define DBL_MIN_10_EXP __DBL_MIN_10_EXP__
50 /* Maximum int x such that FLT_RADIX**(x-1) is a representable double */
51 #define DBL_MAX_EXP __DBL_MAX_EXP__
53 #define DBL_MAX __DBL_MAX__
54 /* Maximum int x such that 10**x is a representable double */
55 #define DBL_MAX_10_EXP __DBL_MAX_10_EXP__
57 /* Number of base-FLT_RADIX digits in the significand of a long double */
58 #define LDBL_MANT_DIG __LDBL_MANT_DIG__
59 /* Number of decimal digits of precision in a long double */
60 #define LDBL_DIG __LDBL_DIG__
61 /* Difference between 1.0 and the minimum long double greater than 1.0 */
62 #define LDBL_EPSILON __LDBL_EPSILON__
63 /* Minimum int x such that FLT_RADIX**(x-1) is a normalised long double */
64 #define LDBL_MIN_EXP __LDBL_MIN_EXP__
65 /* Minimum normalised long double */
66 #define LDBL_MIN __LDBL_MIN__
67 /* Minimum int x such that 10**x is a normalised long double */
68 #define LDBL_MIN_10_EXP __LDBL_MIN_10_EXP__
69 /* Maximum int x such that FLT_RADIX**(x-1) is a representable long double */
70 #define LDBL_MAX_EXP __LDBL_MAX_EXP__
71 /* Maximum long double */
72 #define LDBL_MAX __LDBL_MAX__
73 /* Maximum int x such that 10**x is a representable long double */
74 #define LDBL_MAX_10_EXP __LDBL_MAX_10_EXP__