Learning Ruby Chris Pine Flashcards
1
Q
puts 1+2
A
3
same as, puts 3
2
Q
puts
A
puts simply writes onto the screen whatever comes after it
3
Q
integers
A
numbers with out decimal point
5
-205
9999999999999999999999999
0
4
Q
floating point numbers
A
numbers with decimal point
- 321
- 001
- 205.3884 - 0
5
Q
arithmetic with integers
A
when you do arithmetic with integers, you’ll get integer answers. When your computer can’t get the “right” answer, it always rounds down