Hexadecimal - Real Numbers

Real Numbers

As with other numeral systems, the hexadecimal system can be used to represent rational numbers, although recurring digits are common since sixteen (10h) has only a single prime factor (two):

1/2
=
0.8 1/6
=
0.2A 1/A
=
0.19 1/E
=
0.1249
1/3
=
0.5 1/7
=
0.249 1/B
=
0.1745D 1/F
=
0.1
1/4
=
0.4 1/8
=
0.2 1/C
=
0.15 1/10
=
0.1
1/5
=
0.3 1/9
=
0.1C7 1/D
=
0.13B 1/11
=
0.0F

where an overline denotes a recurring pattern.

For any base, 0.1 (or "1/10") is always equivalent to one divided by the representation of that base value in its own number system: Counting in base 3 is 0, 1, 2, 10 (three). Thus, whether dividing one by two for binary or dividing one by sixteen for hexadecimal, both of these fractions are written as 0.1. Because the radix 16 is a perfect square (4²), fractions expressed in hexadecimal have an odd period much more often than decimal ones, and there are no cyclic numbers (other than trivial single digits). Recurring digits are exhibited when the denominator in lowest terms has a prime factor not found in the radix; thus, when using hexadecimal notation, all fractions with denominators that are not a power of two result in an infinite string of recurring digits (such as thirds and fifths). This makes hexadecimal (and binary) less convenient than decimal for representing rational numbers since a larger proportion lie outside its range of finite representation.

All rational numbers finitely representable in hexadecimal are also finitely representable in decimal, duodecimal, and sexagesimal: that is, any hexadecimal number with a finite number of digits has a finite number of digits when expressed in those other bases. Conversely, only a fraction of those finitely representable in the latter bases are finitely representable in hexadecimal. For example, decimal 0.1 corresponds to the infinite recurring representation 0.199999999999... in hexadecimal. However, hexadecimal is more efficient than bases 12 and 60 for representing fractions with powers of two in the denominator (e.g., decimal one sixteenth is 0.1 in hexadecimal, 0.09 in duodecimal, 0:3:45 in sexagesimal and 0.0625 in decimal).

In decimal
In hexadecimal
Fraction Positional representation Positional representation Fraction
1/2 2 0.5 0.8 2 1/2
1/3 3 0.3333... = 0.3 0.5555... = 0.5 3 1/3
1/4 2 0.25 0.4 2 1/4
1/5 5 0.2 0.3 5 1/5
1/6 2, 3 0.16 0.2A 2, 3 1/6
1/7 7 0.142857 0.249 7 1/7
1/8 2 0.125 0.2 2 1/8
1/9 3 0.1 0.1C7 3 1/9
1/10 2, 5 0.1 0.19 2, 5 1/A
1/11 11 0.09 0.1745D B 1/B
1/12 2, 3 0.083 0.15 2, 3 1/C
1/13 13 0.076923 0.13B D 1/D
1/14 2, 7 0.0714285 0.1249 2, 7 1/E
1/15 3, 5 0.06 0.1 3, 5 1/F
1/16 2 0.0625 0.1 2 1/10
1/17 17 0.0588235294117647 0.0F 11 1/11
1/18 2, 3 0.05 0.0E38 2, 3 1/12
1/19 19 0.052631578947368421 0.0D79435E5 13 1/13
1/20 2, 5 0.05 0.0C 2, 5 1/14
1/21 3, 7 0.047619 0.0C3 3, 7 1/15
1/22 2, 11 0.045 0.0BA2E8 2, B 1/16
1/23 23 0.0434782608695652173913 0.0B21642C859 17 1/17
1/24 2, 3 0.0416 0.0A 2, 3 1/18
1/25 5 0.04 0.0A3D7 5 1/19
1/26 2, 13 0.0384615 0.09D8 2, B 1/1A
1/27 3 0.037 0.097B425ED 3 1/1B
1/28 2, 7 0.03571428 0.0924 2, 7 1/1C
1/29 29 0.0344827586206896551724137931 0.08D3DCB 1D 1/1D
1/30 2, 3, 5 0.03 0.08 2, 3, 5 1/1E
1/31 31 0.032258064516129 0.08421 1F 1/1F
1/32 2 0.03125 0.08 2 1/20
1/33 3, 11 0.03 0.07C1F 3, B 1/21
1/34 2, 17 0.02941176470588235 0.078 2, 11 1/22
1/35 5, 7 0.0285714 0.075 5, 7 1/23
1/36 2, 3 0.027 0.071C 2, 3 1/24
Algebraic irrational number In decimal In hexadecimal
√2 1.41421356237309... 1.6A09E667F3BCD...
√3 1.73205080756887... 1.BB67AE8584CAA...
√5 2.2360679774997... 2.3C6EF372FE95...
φ 1.6180339887498... 1.9E3779B97F4A...
Transcendental irrational number
π 3.1415926535897932384626433
8327950288419716939937510...
3.243F6A8885A308D313198A2E0
3707344A4093822299F31D008...
e 2.7182818284590452... 2.B7E151628AED2A6B...
τ 0.412454033640... 0.6996 9669 9669 6996 ...
γ 0.5772156649015328606... 0.93C467E37DB0C7A4D1B...

Read more about this topic:  Hexadecimal

Famous quotes containing the words real and/or numbers:

    The thief steals from himself. The swindler swindles himself. For the real price is knowledge and virtue, whereof wealth and credit are signs. These signs, like paper money, may be counterfeited or stolen, but that which they represent, namely, knowledge and virtue, cannot be counterfeited or stolen.
    Ralph Waldo Emerson (1803–1882)

    Publishers are notoriously slothful about numbers, unless they’re attached to dollar signs—unlike journalists, quarterbacks, and felony criminal defendents who tend to be keenly aware of numbers at all times.
    Hunter S. Thompson (b. 1939)