Look inside and read and try to understand it. For the base conversion bit, I recommend also doing some of those computations by hand so you get a bit of a feel of what's going on.