New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent generation of floating negative zero #11695
Comments
From Keith.S.Thompson@gmail.comCreated by Keith.S.Thompson@gmail.comThis is based on a question posted to stackoverflow.com: This program: use strict; my $x = -1.0 * 0.0; printf "x = $x = %f\n", $x; produces this output: I get the same result with perl 5.10.1 (the default version on my It's reasonable for a negative number multiplied by zero to yield I had a couple of hypotheses about this. The first was that Further experiment shows that multiplying a negative integral value by Perl Info
|
From @iabynOn Wed, Oct 12, 2011 at 03:25:45PM -0700, Keith.S.Thompson@gmail.com wrote:
On platforms where both floats and ints are 64-bit, perl tries to perform -- |
The RT System itself - Status changed from 'new' to 'open' |
@iabyn - Status changed from 'open' to 'rejected' |
From @devenOn Thu, Oct 13, 2011 at 4:53 AM, Dave Mitchell <davem@iabyn.com> wrote:
Should this be handled as a special case to preserve the -0.0 result? Deven |
Migrated from rt.perl.org#101262 (status was 'rejected')
Searchable as RT101262$
The text was updated successfully, but these errors were encountered: