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 reply to Re: Answer: My floating point comparison does not work. Why ?
by thens
in thread My floating point comparison does not work. Why ?
by thens
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |