Try something like:
if (fValue*100 == (int)(fValue*100)) {
//fValue had 2 decimal places or less
}
If fValue = 0.11
then fValue*100 = 11
. So you'd have 11 == (int)11
which is true
.
If fValue = 0.111
then fValue*100 = 11.1
. So you'd have 11.1 == (int)11.1
which is false
.