develooper Front page | perl.perl5.porters | Postings from July 2000

Re: [ID 20000721.002] bleedperl sfio fails op/sprintf.t

Thread Previous
Dominic Dunlop
July 31, 2000 11:11
Re: [ID 20000721.002] bleedperl sfio fails op/sprintf.t
Message ID:
At 19:48 +0100 2000-07-21, Nicholas Clark wrote:
>However, sfio also causes op/sprintf.t to fail tests 129 and 130:
>not ok 129 >%.0f< >0.6< >1< >0<
>not ok 130 >%.0f< >-0.6< >-1< >-0<

I'm guilty of that test.  The C standard says, for the f format 
"[t]he value is rounded to the appropriate number of digits." 
Representing 0.6 as zero when no decimal places are requested does 
not look like rounding to me.

>I'm not sure whether this is a bug in sfio or the perl test assuming too

My (biassed) vote is for a bug in sfio.  Any chance you could see how 
sfio2000 (referenced in another follow-up) fares?
Dominic Dunlop

Get Your Private, Free Internet Access from FREE INTERNET at

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About