Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Answer: My floating point comparison does not work. Why ?

by thens (Scribe)
on Sep 23, 2003 at 15:11 UTC ( [id://293522]=note: print w/replies, xml ) Need Help??


in reply to Re: My floating point comparison does not work. Why ?
in thread My floating point comparison does not work. Why ?

But I guess the round off operation is very costly and may not be a good solution when you are dealing with large sets of data to be compared.

When perfomance is a concern testing for the range is a better option than rounding off the numbers and then doing a string compare ( which is again costly !! )

-T

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-03-28 16:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found