Reputation: 1395
Let's say i have this situation. I have a bid system that accept different currency rate. Here is my situation.
So my question is how can i tackle this situation? As i need to compare the bid submitted in base rate. Please help. Thank you.
Upvotes: 0
Views: 50
Reputation: 681
I'm sure someone else will give you a better answer, but one approach would be to define some tolerance (or epsilon value), such as ± 0.001, and use that in your validation tests to allow for negligible differences due to conversion and rounding.
Upvotes: 1