DEV Community

Luke O'Connell
Luke O'Connell

Posted on

Today I learned- Floats

Today I learned that Ruby calls decimal numbers floats. I learned that, unlike with integers, division with floats produces a fractional result. I also learned how to calculate roots in Ruby. In addition to this I learned about the round and the rand methods. If the rand method is used with no arguments it returns a float between 0 and 1.

Top comments (0)