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?? |
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
In Section
Seekers of Perl Wisdom
|
|