DEV Community

Luke O'Connell
Luke O'Connell

Posted on

Today I learned- Integers

Today I learned about the Integer class in Ruby. One interesting thing I learned is that division in Ruby only returns the whole part and you use % to find the remainder. I learned about the rand method which seems to be extremely useful. I also learned about to_i and to_s. These can be useful when a string contains a number.

Top comments (0)