Is there a way to limit the decimal places on a float?
I.e., if I have a float 6.6666666667, can I get rid of some of the decimals and make it just 6.67?
http://www.rubycentral.com/ref/ref_c_float.html
http://www.rubycentral.com/ref/ref_c_fixnum.html
http://www.rubycentral.com/ref/ref_c_bignum.html
float = 6.666666667
float = float * 100
float = float.round.to_f
float = float / 100
Thank you ;D
I don't why I didn't think of that.