converts input in decimal, hexadecimal, octal or binary to desired base (excluding binary)