$fv = sprintf("%1.2f", $dv); #### SELECT * FROM table WHERE abs(float - 0.98) < 0.001;