Fix the precision of a float value