**diff options**

author | Rich Felker <dalias@aerifal.cx> | 2012-03-21 12:42:48 -0400 |
---|---|---|

committer | Rich Felker <dalias@aerifal.cx> | 2012-03-21 12:42:48 -0400 |

commit | 47db8903f61e20aba53adfc987dfb576d22a0b81 (patch) | |

tree | eaa4ecbe5df143a7080fb41088c144c61e9121df /include/float.h | |

parent | 25501c1079756c9b438842da649585c2a6983c24 (diff) | |

download | musl-47db8903f61e20aba53adfc987dfb576d22a0b81.tar.gz |

fix DECIMAL_DIG definitions

DECIMAL_DIG is not the same as LDBL_DIG
type_DIG is the maximimum number of decimal digits that can survive a
round trip from decimal to type and back to decimal.
DECIMAL_DIG is the minimum number of decimal digits required in order
for any floating point type to survive the round trip to decimal and
back, and it is generally larger than LDBL_DIG. since the exact
formula is non-trivial, and defining it larger than necessary may be
legal but wasteful, just define the right value in bits/float.h.

Diffstat (limited to 'include/float.h')

-rw-r--r-- | include/float.h | 2 |

1 files changed, 0 insertions, 2 deletions

diff --git a/include/float.h b/include/float.h index ef91f37d..ea25f270 100644 --- a/include/float.h +++ b/include/float.h @@ -29,6 +29,4 @@ #include <bits/float.h> -#define DECIMAL_DIG LDBL_DIG - #endif |