<commit_before># This file is a transcript of the IRB session shown in the movie.
# You should be able to cut and paste it into IRB to get 
# the same results shown in the comments.

# irb
1 + 1
# => 2
x = 2
# => 2
4 / 2
# => 2
4 * 2
# => 8
4 - 2
# => 2
4 ** 2
# => 16
x = 4
# => 4
x += 2
# => 6
x
# => 6
x = x + 2
# => 8
(1 + 2) * 3
# => 9
1234.class
# => Fixnum
123456789123456789.class
# => Bignum
x = 1234 * 1234 * 1234
# => 1879080904
x.class
# => Bignum
-200
# => -200
-200.abs
# => 200
200.next
# => 201
quit<commit_msg>Adds extra notes on integers exercise<commit_after># This file is a transcript of the IRB session shown in the movie.
# You should be able to cut and paste it into IRB to get
# the same results shown in the comments.

#numbers: integers & floats

# irb
1 + 1
# => 2
x = 2
# => 2
4 / 2
# => 2
4 * 2
# => 8
4 - 2
# => 2
4 ** 2
# => 16
x = 4
# => 4
x += 2
# => 6
#gives result of operation but also changed value of x at the same time
#Incremented & added assignment
x
# => 6
x = x + 2
# => 8
(1 + 2) * 3
# => 9
1234.class
# => Fixnum
123456789123456789.class
# => Bignum
#Integers are subclasses- either Fixnum or Bignum
#Difference is memory value- fixnum is a number more efficient number
x = 1234 * 1234 * 1234
# => 1879080904
x.class
# => Bignum
-200
# => -200
-200.abs
# => 200
200.next
# => 201
#same as 200 + 1
quit
{'fraction_non_alphanumeric': 0.14253897550111358, 'fraction_numerical': 0.13808463251670378, 'mean_word_length': 2.7340720221606647, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '979475', 'n_tokens_mistral': 680, 'n_tokens_neox': 525, 'n_words': 220}