On Thu, Aug 11, 2005 at 02:05:20AM -0700, Yitzchak Scott-Thoennes wrote:
> The PERL_PRESERVE_IVUV stuff can lose a negative zero.
> 
> $ perl -we'$x = -.0; $x *= 1.0; print $x'
> 0
> $ perl -we'$x = -.0; $x *= 1.1; print $x'
> -0
> 
> Should a negative zero never get IOK turned on?

I meant to show the non-assignment case, where the - is a driveby
shooting victim:

$ perl -we'$x = -.0; scalar($x * 1.0); print $x'
0
$ perl -we'$x = -.0; scalar($x * 1.1); print $x'
-0

Reply via email to