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

Re: [perl #76756] PATCH: srand returns the seed

Thread Previous | Thread Next
From:
Zefram
Date:
July 29, 2010 08:32
Subject:
Re: [perl #76756] PATCH: srand returns the seed
Message ID:
20100729153245.GF21668@lake.fysh.org
Andy Dougherty wrote:
>> On Wed, 28 Jul 2010, Zefram wrote:
>> > That would be a mess.  The better solution is for negative zero to
>> > stringify as "0".
>
>But wouldn't that would eliminate the possibility of printing out a valid 
>result of an IEEE-754 calculation?

No.  Only implicit stringification is affected; explicit conversion with
printf %f, etc., would still output the sign when expected.

-zefram

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