don't convert it to text just decide what the acceptable error is and compare ...
float error = 0.00000013;
float lowv = 0.1 - error;
float highv = 0.1 + error;
if ((lowv <= myfloat) && (highv >= myfloat)) {
// good value
} else {
// bad value
}