develooper Front page | perl.perl5.porters | Postings from June 2001

Re: [ID 20010529.006] String plus zero inconsistent across platforms

Thread Previous | Thread Next
From:
Hugo
Date:
June 2, 2001 21:21
Subject:
Re: [ID 20010529.006] String plus zero inconsistent across platforms
Message ID:
200106030322.EAA18760@crypt.compulink.co.uk
In <20010602224912.F13243@chaos.wustl.edu>, Jarkko Hietaniemi writes:
:akvavitix:/tmp/jhi/perl ; ./perl -Ilib -wle 'printf "%.32f\n", 3.14159+$_ for 
:0, 2e-16, 3e-16;use POSIX;printf "%.32f\n", POSIX::strtod("3.14159")+$_ for 0,
: 2e-16, 3e-16'
:3.14159000000000032670754990249407
[...]

Not sure which config that is, but I'm a little surprised that's so far
out. I'll work on trying to improve atof2(), but I suspect this is going
to prove as troublesome a test candidate as any of the _ld platforms.

Hugo

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About