Float data type problems and solutions