Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: eq vs ==

by oha (Friar)
on Nov 11, 2009 at 11:01 UTC ( [id://806459]=note: print w/replies, xml ) Need Help??


in reply to Re^2: eq vs ==
in thread eq vs ==

not using float or not compare ==.

(or using abs($x-$y) < $epsilon as you already shown which is not the compare anyway)

I know my position is a bit strong, but using == on floats is going to make troubles, which depends on values, host, compiler, libc and so on. very hard to predict and replicate.

maybe a nice gift would be to have a warning?

Update: ops! i've replied to my node instead of moritz's 806454.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://806459]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-03-28 19:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found