002 Large Integer Literals Flashcards

1
Q

How can you format big numbers so they are readable?

A

10000 can be written as 10_000.

1000000 can be written as 1_000_000

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is 1_000_000 in Ruby?

A

It’s 1 million in integer form.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly