Learn Ruby
Number
11.4
Lesson

optional underscore

It’s hard to read a big number sometimes. We can’t use a comma since it’s a number.

Ruby allows us to use an underscore to make it easier to understand big numbers. We are allowed to put an underscore anywhere in a number. Ruby ignores all underscores in a number.