Readability of large integer literals

Sometimes we write programs which contain literals numeric. Large numbers can be very difficult to read.

How many zeroes are there?

  billion = 1000000000
  ten_billion = 10000000000

In Ruby we can add underscore to large numeric literals to improve their readability.

  billion = 1_000_000_000
  ten_billion = 10_000_000_000

As you can see it was much easier to read.