I am looking to let users input values that are multiples of 0.10, such as - 0.10, 0.20, 0.30....1.00, 1.10, 1.20...1.90, and so on.
When a user enters a value in the text box, I have been checking the following validation:
amount % 0.10 == 0
Is this approach correct, or should I round the remainder instead?