Converter form B2 to B10 and vise versa, up to 2^53