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 content is licensed under Creative Commons Attribution/Share-Alike License 3.0 (Unported). That means you may freely redistribute or modify this content under the same license conditions and must attribute the original author by placing a hyperlink from your site to this work https://planetcalc.com/375/. Also, please do not modify any references to the original work (if any) contained in this content.
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
Comments