Numeral System Converter

The numeral system converter calculator converts numbers from one numeral system to another given the source number and the source numeral system base and target numeral system base. The calculator can handle numeral systems with bases ranging from 2 to 36.

This page exists due to the efforts of the following people:

Timur

Timur

Created: 2011-06-22 22:06:27, Last updated: 2023-04-06 03:16:32

The converter works by first converting the source number to a decimal number and then converting the decimal number to the target numeral system. The algorithm for converting the source number to decimal depends on the source numeral system base. For example, if the source numeral system base is 16 (hexadecimal), each digit in the source number is multiplied by the corresponding power of 16 and the resulting products are summed.

After converting the source number to decimal, the algorithm for converting to the target numeral system depends on the target numeral system base. For example, if the target numeral system base is 2 (binary), the decimal number is repeatedly divided by 2 and the remainders are used to construct the binary representation of the number.

To convert from any base to any base, you should enter 'from' number, i.e., FF, 'from' base (base of your 'from' number), i.e., 16, and 'to' base (base of your 'to' number), i.e., 10. This will convert FF from hexadecimal base to decimal base, and you will get 255.

Use English alphabet letters to denote digits for numeral systems with a base greater than 10. E.g., 10 = A, 11 = B, 12 = C, and so on.

Here are some examples:

  • From 16 to 10 (from hex to dec)
  • From 10 to 16 (from dec to hex)
  • From 10 to 2 (from dec to bin)
  • From 2 to 10 (from bin to dec)
  • From 16 to 2 (from hex to bin)
  • From 2 to 16 (from bin to hex)

UPDATE: For fractional numbers conversion visit Conversion of fractional numbers between numeral systems

PLANETCALC, Conversion between two positional numeral systems

Conversion between two positional numeral systems

'From' number base
Number to be converted
'To' number base
'To' number
 

URL copied to clipboard
PLANETCALC, Numeral System Converter

Comments