Re: Dodgy functions (finitel, strold)

2016-04-01 Thread Achim Gratz
Doug Henderson writes: > I modified your program to display the actual hex value of the a, b, > and c variables. The b and c variables have different bit patterns. It > appears that the %a format conversion is (correctly) detecting ±inf > and NaN according to IEEE 754, and ignoring the value of

Re: Dodgy functions (finitel, strold)

2016-03-26 Thread Corinna Vinschen
On Mar 25 18:16, Doug Henderson wrote: > On 25 March 2016 at 02:59, Achim Gratz wrote: > > > > Achim Gratz writes: > > > Achim Gratz writes: > > >> Long story short, they seem to report a finite value on at least some > > >> NaN constructs and then the %a format for the Perl

Re: Dodgy functions (finitel, strold)

2016-03-25 Thread Doug Henderson
On 25 March 2016 at 02:59, Achim Gratz wrote: > > Achim Gratz writes: > > Achim Gratz writes: > >> Long story short, they seem to report a finite value on at least some > >> NaN constructs and then the %a format for the Perl sprintf outputs those > >> bits as a hex FP number

Re: Dodgy functions (finitel, strold)

2016-03-25 Thread Achim Gratz
Achim Gratz writes: > Achim Gratz writes: >> Long story short, they seem to report a finite value on at least some >> NaN constructs and then the %a format for the Perl sprintf outputs those >> bits as a hex FP number rather than just printing "NaN". On 64bit the >> culprit is actually finitel,