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

Re: inf handling in Perl incomplete

Thread Previous | Thread Next
From:
Piers Cawley
Date:
August 8, 2001 01:12
Subject:
Re: inf handling in Perl incomplete
Message ID:
m3r8unkm2b.fsf@iest.bofh.org.uk
Jarkko Hietaniemi <jhi@iki.fi> writes:
> While that someone is at it, "NaN" also needs fixing.  In there one
> needs to move more carefully, since there usually are two kinds:
> "signaling" and "quiet" NaNs.  The first kind gives SIGFPEs, the
> second doesn't.
> 
> 	$x = NaN;
> 	print "goofy\n" if 0/0 == NaN;	# should always print
> 	print "spooky\n" if NaN == NaN; # should never print
    print "ooky\n" if NaN == 1;     # should never print. But does.

-- 
Piers Cawley
www.iterative-software.com


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