Add function for printing a number in some base.