Icon_homeHome
Keller & Faber Home
writing

Base conversion in Ruby

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.

Blog_arrowContinue Reading Blog_plusComments (1)

ABOUT THIS BLOG

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.


CONTRIBUTORS

Josh Keller (4)
David Faber (3)

TAGS

fun (1)
maps (1)
new work (1)
rails (1)
ruby (2)
science (1)
typography (1)