Decimal Numbers
The Arabian mathematician al-Khwārizmī, born 850
in Bagdad, invented the first positional numeral
system with 10 numeric characters:
in Bagdad, invented the first positional numeral
system with 10 numeric characters:
The decimal (base ten) numeral system has ten possible values (0,1,2,3,4,5,6,7,8, or 9) for each place-value. In contrast, the binary (base two) numeral system has two possible values represented as 0 or 1 for each place-value.[1] Since the binary system is the internal language of electronic computers, serious computer programmers should understand how to convert from decimal to binary.
|
Set up the problem. For this example, let's convert the decimal number 15610 to binary. Write the decimal number as the dividend inside an upside-down "long division" symbol. Write the base of the destination system (in our case, "2" for binary) as the divisor outside the curve of the division symbol.
|
Hex, or hexadecimal, is a number system of base 16. This number system is especially interesting because in our casually used decimal system we have only 10 digits to represent numbers. As hex system has 16 digits, the extra needed 6 digits are represented by the first 6 letters of English alphabet. Hence, hex digits are 0,1,2,3,4,5,6,7,8 and 9 A, B, C, D, E, F. This number system is the most commonly used in mathematics and information technologies. I.e. in html programming colors can be represented by a 6-digit hexadecimal number: FFFFFF represents white, 000000 represents black, and so on.
Decimal to hex conversion examples
|