Converting numbers to different bases is incredibly easy in Ruby.
In a case where I needed to convert base 10 numbers to hexadecimal, I almost wrote out the code to perform this conversions manually before I decided that there was no way Ruby didn’t provide a beautiful way to do this. It took a bit more Google searching than I would have thought, so hopefully this post can save someone those extra 10 minutes.
Continue Reading
Comments (1)
Writing is the collected thoughts of Josh Keller & David Faber on graphic art, science, the internet, and the San Francisco Bay Area. Keller & Faber is a website design and development company based in Berkeley, Calif.
Josh Keller (4)
David Faber (3)