Mega Code Archive

 
Categories / Ruby / Number
 

Difference between puts x y and puts x to_f y to_f

x = 10 y = 3 puts x / y puts x.to_f / y.to_f