Re: Printf routine incorrectly prints NaN for -Inf

2002-11-11 Thread Christopher Faylor
On Mon, Nov 11, 2002 at 10:11:57PM -0500, Peter Kabal wrote: >gcc version 3.2 20020818 (prerelease) > >printf ("%g", log(0)); > >This prints "NaN" instead of "-Inf" as it should (and did in the past). >A check of the bit pattern returned shows that that log(0) returns a bit >pattern corresponding t

Printf routine incorrectly prints NaN for -Inf

2002-11-11 Thread Peter Kabal
gcc version 3.2 20020818 (prerelease) printf ("%g", log(0)); This prints "NaN" instead of "-Inf" as it should (and did in the past). A check of the bit pattern returned shows that that log(0) returns a bit pattern corresponding to "-Inf", but printf prints "NaN" instead. I am not sure which C li