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
Floating point error #683
Comments
From stevenl@concentric.net$ cat float.pl my $t = 101.1 - 100.2; $ float.pl $ perl -V Characteristics of this binary (from libperl): -Steven |
From [Unknown Contact. See original ticket]I found a very basic arithmetic error in Perl (tested on Linux, Sun, and $ cat float.pl my $t = 101.1 - 100.2; $ float.pl $ perl -V Characteristics of this binary (from libperl): -Steven |
From @samtregarOn 5 Oct 1999 richard@tmtowtdi.perl.org wrote:
You're missing the inherent uncertainty-factor of floating point Summary: it's pretty difficult to do floating point right, and it's a lot -sam |
From [Unknown Contact. See original ticket]Aaaarrgh!! Sam Tregar <sam@tregar.com> wrote
Oh no he didn't. The bug report came from someone else, but we don't And it would probably have been a good idea to point him at the Richard: Is there some way of finding the originator of these reports, e.g. And if it's a choice between flattened From: fields and getting duplicated Mike Guy |
From [Unknown Contact. See original ticket]
Sigh... |
From [Unknown Contact. See original ticket]Steven Lee <stevenl@concentric.net> wrote
You need to understand the basic facts about floating point arithmetic. See the section "Floating-point Arithmetic" in the perlop manpage, Why am I getting long decimals (eg, 19.9499999999999) Mike Guy |
From [Unknown Contact. See original ticket]
Amazing. This must be a really early version of perl. No wonder it took <chaim> |
From [Unknown Contact. See original ticket]
Yeah, well, I guess I have to go change the battery in my computer... :-) Ciao richard@rfi.net |
From @jhiChaim Frenkel writes:
Richard no doubt had to copy it in from a paper tape. -- |
From [Unknown Contact. See original ticket]
Actually it took a while to scan, and OCR, it from the slate it was Ciao richard@rfi.net |
Migrated from rt.perl.org#1573 (status was 'resolved')
Searchable as RT1573$
The text was updated successfully, but these errors were encountered: