converts doubles to floats