Re: == operator acts differently in perl 5.005_03 and 5.8.2
From: Jürgen Exner (jurgenex_at_hotmail.com)
Date: 03/22/05
- Next message: Hal Vaughan: "LWP: Any Easy Way to Use Relative Links?"
- Previous message: Bob Walton: "Re: Perl ODBC complex query example needed"
- In reply to: Yahav: "Re: == operator acts differently in perl 5.005_03 and 5.8.2"
- Next in thread: Anno Siegel: "Re: == operator acts differently in perl 5.005_03 and 5.8.2"
- Reply: Anno Siegel: "Re: == operator acts differently in perl 5.005_03 and 5.8.2"
- Reply: Yahav: "Re: == operator acts differently in perl 5.005_03 and 5.8.2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 22 Mar 2005 03:09:05 GMT
Yahav wrote:
> Second, my current solution is to multiply each of the numbers by one,
> and then i get the same number...
> Maybe there's other (maybe better) ways of overtaking this..
Arrrrg, if you quoting Tad's hint for the FAQ, then why don't you actually
read _and_follow_ it?
Obviously you must have missed the first class in Introduction to Computer
Numerics, therefore here a summary:
Thou shalt not compare floating point numbers for equality!
If you must then use an epsilon distance instead.
jue
- Next message: Hal Vaughan: "LWP: Any Easy Way to Use Relative Links?"
- Previous message: Bob Walton: "Re: Perl ODBC complex query example needed"
- In reply to: Yahav: "Re: == operator acts differently in perl 5.005_03 and 5.8.2"
- Next in thread: Anno Siegel: "Re: == operator acts differently in perl 5.005_03 and 5.8.2"
- Reply: Anno Siegel: "Re: == operator acts differently in perl 5.005_03 and 5.8.2"
- Reply: Yahav: "Re: == operator acts differently in perl 5.005_03 and 5.8.2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]