[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: printf-frexp and the radix of floating point numbers
From: |
Paul Eggert |
Subject: |
Re: printf-frexp and the radix of floating point numbers |
Date: |
Mon, 05 Mar 2007 16:45:30 -0800 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
Bruno Haible <address@hidden> writes:
> If FLT_RADIX = 16, multiplication of a number with 2.0 causes rounding
> errors for 25% of the numbers, and multiplication with 0.5 causes rounding
> errors for 75% of the numbers. (Btw, this makes it impossible to implement
> a C99 compatible frexp() function, no?)
C99 doesn't require the answer to be exact, so it should be possible
to implement frexp even when FLT_RADIX = 16.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: printf-frexp and the radix of floating point numbers,
Paul Eggert <=