Hexadecimal Number System
Hexadecimal Number System
Hexadecimal Number System
Math.Edurite.com
Page : 1/3
00012 = 110 00102 = 210 01002 = 410 10002 = 810 Therefore: 11112 = 810 + 410 + 210 + 110 = 1510 With little practice, mapping 11112 to F16 in one step becomes easy: see table in Written representation. The advantage of using hexadecimal rather than decimal increases rapidly with the size of the number. When the number becomes large, conversion to decimal is very tedious. However, when mapping to hexadecimal, it is trivial to regard the binary string as 4-digit groups and map each to a single hexadecimal digit. Division-remainder in source base ;- As with all bases there is a simple algorithm for converting a representation of a number to hexadecimal by doing integer division and remainder operations in the source base. In theory, this is possible from any base, but for most humans only decimal and for most computers only binary (which can be converted by far more efficient methods) can be easily handled with this method. Let d be the number to represent in hexadecimal, and the series hihi1...h2h1 be the hexadecimal digits representing the number. i := 1 hi := d mod 16 d := (dhi) / 16 If d = 0 (return series hi) else increment i and go to step 2 "16" may be replaced with any other base that may be desired. Addition and multiplication ;- It is also possible to make the conversion by assigning each place in the source base the hexadecimal representation of its place value and then performing multiplication and addition to get the final representation. That is, to convert the number B3AD to decimal one can split the conversion into D (1310), A (1010), 3 (310) and B (1110) then get the final result by multiplying each decimal representation by 16p, where 'p' is the corresponding position from right to left, beginning with 0. In this case we have (13 160) + (10 161) + (3 162) + (11 163), which is 45997 base 10. Read More About :- Rational Numbers in Expressions
Math.Edurite.com
Page : 2/3
ThankYou
Math.Edurite.Com