develooper Front page | perl.perl5.porters | Postings from April 2006

[perl #38899] nondeterministic perl floating point math

Thread Previous | Thread Next
Justin Palmer
April 11, 2006 14:12
[perl #38899] nondeterministic perl floating point math
Message ID:
# New Ticket Created by  Justin Palmer 
# Please include the string:  [perl #38899]
# in the subject line of all future correspondence about this issue. 
# <URL: >


I think this one is pretty self-explanatory.  I can't seem to 
generate another number that this sort of problem happens with, 
and I haven't looked harder to find out what other numbers this 
happens to.  Any idea what's going on?  Bad machine language-perl 
float interaction, I bet.

Thanks in advance for looking into this!


$ perl -v

This is perl, v5.8.6 built for darwin-thread-multi-2level
(with 2 registered patches, see perl -V for more detail)

Copyright 1987-2004, Larry Wall

Perl may be copied only under the terms of either the Artistic 
License or the
GNU General Public License, which may be found in the Perl 5 
source kit.

Complete documentation for Perl, including FAQ lists, should be 
found on
this system using `man perl' or `perldoc perl'.  If you have 
access to the
Internet, point your browser at, the Perl 
Home Page.

$ perl -e 'print int(70.7/0.1)."\n";'
$ perl -e 'print int(70.8/0.1)."\n";'

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About