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

Re: inf handling in Perl incomplete

Thread Previous | Thread Next
From:
Hugo van der Sanden
Date:
August 8, 2001 17:54
Subject:
Re: inf handling in Perl incomplete
Message ID:
200108090054.f790s0513710@crypt.compulink.co.uk
"Kurt D. Starsinic" <kstar@wolfetech.com> wrote:
:On Wed, Aug 08, 2001 at 09:11:56AM +0100, Piers Cawley wrote:
:>     print "ooky\n" if NaN == 1;     # should never print. But does.
:
:    I don't believe that the Perl documentation claims that the bareword
:`NaN' becomes an IEEE NaN in numeric context.  It just suggests that
:an IEEE NaN is `NaN' in string context.  Do you believe otherwise,
:or are you proposing a change?

Wouldn't we then expect NaN == 0?

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