if you want to see if two floating point number are the same up to the first two decimal places you could call a function like this:
boolean isEqual(float f1, float f2){
return ( (int)(f1 *100)) == ((int)(f2 * 100) );
}
this should return true if the two floats passed are the same up the first two decimal places. If your floating point numbers will be bigger than the largest signed integer divided by 100 (i.e. 327 ) then change the cast of (int) to (long) in both places in the function
There may actually be a C library function to do this but I avoid using floats if I can, so I have not needed to look for one