C: problem of float solved