Convert whole numbers between binary, octal, decimal and hexadecimal without floating-point rounding.