Big integers in Ruby
This is not very easy task to visually identify, if for some reason, you have to keep big integer constants in your code:
my_yearly_income = 13484936748
In Ruby, you can separate digits groups, and this way, we can reformat integer like:
my_yearly_income = 13_484_936_748
Written by Vlad Shvedov
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#