Added base_k to decimal conversion