Behind The Scenes: How Numbers Work in Ruby

19-Aug-2016 4016

Ruby 2.4 will be merging both Fixnum & Bignum into the same class (Integer) so I think this is a good time to review the different number types in Ruby! All this means is that Fixnum objects are closer to symbols in terms of how they work at the interpreter level, while Bignum objects are closer to strings.

Free eBook download

Download all our eBooks for free from Gumroad!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these books offer thousands of essential questions and answers across multiple languages. Download the complete collection for free from our Gumroad page. Free Ultimate Job Interview Preparation eBook collection