Working with Numbers

Learn about the different types of numbers in Ruby.

We'll cover the following


We can create a number by simply writing it out. The number 123 is Ruby code, representing the number 123. We can also use a . as a decimal point, for example, 12.34.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy