So I already have code working to validate an int but the problem is that the number is going to be slightly different than what is entered everytime. When I validate I need to validate the value within a range not the exact value. For example when I enter a value of 15750 I may receive it as 15759 on the validation side. This is due to various rounding methods that happen in our system and is correct so I don't want this to show up as a failure in my tests. I would like to validate that the altitude equals 15750 plus or minus 25. So basically if 15750 was entered everything from 15725 to 15775 would pass the test.
Can anyone help me out please?