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

Re: inf handling in Perl incomplete

Thread Previous
From:
Jarkko Hietaniemi
Date:
August 5, 2001 07:47
Subject:
Re: inf handling in Perl incomplete
Message ID:
20010805094723.I7622@chaos.wustl.edu
> a real NaN is a little harder than saying `$x = NaN'.  I think that you
> can say, e.g.:
> 
>         use POSIX ':fcntl_h'; $x = DBL_MAX();
> 
>     and you'll get a real Inf that DTRT (at least on FreeBSD 4.3).  I'll
> check that on Monday.

See perl.h:2501 or thereabouts.

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous


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