Selecting from a float column (mysql) with the value '5.8' ends up producing 5.80000019073486
The conversion that jruby does internally casts 5.8f -> double. This reveals the imprecision in the float value.
The fix involves using double internally for a value that is float in the database.
Thanks, applied in 6b55c0a.