Change the type of variable resto from int to  float