utilities for converting numbers from one base to another