I guess you're talking about offering a tolerance value so that if the number is within tolerance then it's considered to be that number.
I'm not sure if that's going to work. The floating point format, if I understand it right, changes the amount of precision available depending on in what range the numbers are, so you might have certain ranges of numbers that are more accurate than others. It also seems that the more digits you have to the left of the decimal place, the less you can have on the right. If you need things to be super accurate just use a fixed point format of your own, like one int for the left part and one int for the right.
I'm not sure if that's going to work. The floating point format, if I understand it right, changes the amount of precision available depending on in what range the numbers are, so you might have certain ranges of numbers that are more accurate than others. It also seems that the more digits you have to the left of the decimal place, the less you can have on the right. If you need things to be super accurate just use a fixed point format of your own, like one int for the left part and one int for the right.