<< Chapter < Page Chapter >> Page >

For example, 5246 can be expressed like in the following expressions

5246 =5 × 10 3 + 2 × 10 2 + 4 × 10 1 +6 × 10 0 = 5 × 1000 + 2 × 100 + 4 × 10 + 6 × 1 MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqaaeaabiGaciaacaqabeaadaqaaqaaaOabaeqabaGaaeynaiaabkdacaqG0aGaaeOnaiaaywW7caqG9aGaaeynaiabgEna0kaabgdacaqGWaWaaWbaaSqabeaacaaIZaaaaOGaey4kaSIaaGOmaiabgEna0kaabgdacaqGWaWaaWbaaSqabeaacaaIYaaaaOGaey4kaSIaaGinaiabgEna0kaabgdacaqGWaWaaWbaaSqabeaacaaIXaaaaOGaae4kaiaabAdacqGHxdaTcaqGXaGaaeimamaaCaaaleqabaGaaGimaaaaaOqaaiaaywW7caaMf8UaaGjbVlaaysW7caaMe8Uaeyypa0JaaGynaiabgEna0kaaigdacaaIWaGaaGimaiaaicdacqGHRaWkcaaIYaGaey41aqRaaGymaiaaicdacaaIWaGaey4kaSIaaGinaiabgEna0kaaigdacaaIWaGaey4kaSIaaGOnaiabgEna0kaaigdaaaaa@703F@

The place-value of any place to the right of the decimal point is a fraction computed from a product in which the reciprocal of the base—or a fraction with one in the numerator and the base in the denominator—is repeated as a factor exactly as many times as the place is to the right of the decimal point.

For example

254.68 = 2 × 10 2 + 5 × 10 1 + 4 × 10 0 + 6 × 10 1 + 8 × 10 2 = 200 + 50 + 4 + 6 10 + 8 100 MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqaaeaabiGaciaacaqabeaadaqaaqaaaOabaeqabaGaaGOmaiaaiwdacaaI0aGaaiOlaiaaiAdacaaI4aGaeyypa0JaaGOmaiabgEna0kaaigdacaaIWaWaaWbaaSqabeaacaaIYaaaaOGaey4kaSIaaGynaiabgEna0kaaigdacaaIWaWaaWbaaSqabeaacaaIXaaaaOGaey4kaSIaaGinaiabgEna0kaaigdacaaIWaWaaWbaaSqabeaacaaIWaaaaOGaey4kaSIaaGOnaiabgEna0kaaigdacaaIWaWaaWbaaSqabeaacqGHsislcaaIXaaaaOGaey4kaSIaaGioaiabgEna0kaaigdacaaIWaWaaWbaaSqabeaacqGHsislcaaIYaaaaaGcbaGaaGzbVlaaywW7caaMf8Uaeyypa0JaaGOmaiaaicdacaaIWaGaey4kaSIaaGynaiaaicdacqGHRaWkcaaI0aGaey4kaSYaaSaaaeaacaaI2aaabaGaaGymaiaaicdaaaGaey4kaSYaaSaaaeaacaaI4aaabaGaaGymaiaaicdacaaIWaaaaaaaaa@6DD5@

Binary system

The binary number system is base 2 and therefore requires only two digits, 0 and 1. The binary system is useful for computer programmers, because it can be used to represent the digital on/off method in which computer chips and memory work.

A binary number can be represented by any sequence of bits (binary digits), which in turn may be represented by any mechanism capable of being in two mutually exclusive states.

Counting in binary is similar to counting in any other number system. Beginning with a single digit, counting proceeds through each symbol, in increasing order. Decimal counting uses the symbols 0 through 9, while binary only uses the symbols 0 and 1.

When the symbols for the first digit are exhausted, the next-higher digit (to the left) is incremented, and counting starts over at 0A single bit can represent one of two values, 0 or 1.Binary numbers are convertible to decimal numbers.

Here's an example of a binary number, 11101.11 ( 2 ) MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqaaeaabiGaciaacaqabeaadaqaaqaaaOqaaiaaigdacaaIXaGaaGymaiaaicdacaaIXaGaaiOlaiaaigdacaaIXaWaaSbaaSqaaiaacIcacaaIYaGaaiykaaqabaaaaa@3DF1@ , and its representation in the decimal notation

235.64 ( 8 ) = 2 × 8 2 + 3 × 8 1 + 5 × 8 0 + 6 × 8 1 + 4 × 8 2 = 157.8125 ( 10 ) MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqaaeaabiGaciaacaqabeaadaqaaqaaaOqaaiaaikdacaaIZaGaaGynaiaac6cacaaI2aGaaGinamaaBaaaleaacaGGOaGaaGioaiaacMcaaeqaaOGaeyypa0JaaGOmaiabgEna0kaaiIdadaahaaWcbeqaaiaaikdaaaGccqGHRaWkcaaIZaGaey41aqRaaGioamaaCaaaleqabaGaaGymaaaakiabgUcaRiaaiwdacqGHxdaTcaaI4aWaaWbaaSqabeaacaaIWaaaaOGaey4kaSIaaGOnaiabgEna0kaaiIdadaahaaWcbeqaaiabgkHiTiaaigdaaaGccqGHRaWkcaaI0aGaey41aqRaaGioamaaCaaaleqabaGaeyOeI0IaaGOmaaaakiabg2da9iaaigdacaaI1aGaaG4naiaac6cacaaI4aGaaGymaiaaikdacaaI1aWaaSbaaSqaaiaacIcacaaIXaGaaGimaiaacMcaaeqaaaaa@6396@

Hexadecimal system

The hexadecimal system is base 16. Therefore, it requires 16 digits. The digits 0 through 9 are used, along with the letters A through F, which represent the decimal values 10 through 15. Here is an example of a hexadecimal number and its decimal equivalent:

34 F 5 C ( 16 ) = 3 × 16 4 + 4 × 16 3 + 15 × 16 2 + 5 × 16 1 + 12 × 16 0 = 216294 ( 10 ) MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqaaeaabiGaciaacaqabeaadaqaaqaaaOqaaiaaiodacaaI0aGaamOraiaaiwdacaWGdbWaaSbaaSqaaiaacIcacaaIXaGaaGOnaiaacMcaaeqaaOGaeyypa0JaaG4maiabgEna0kaaigdacaaI2aWaaWbaaSqabeaacaaI0aaaaOGaey4kaSIaaGinaiabgEna0kaaigdacaaI2aWaaWbaaSqabeaacaaIZaaaaOGaey4kaSIaaGymaiaaiwdacqGHxdaTcaaIXaGaaGOnamaaCaaaleqabaGaaGOmaaaakiabgUcaRiaaiwdacqGHxdaTcaaIXaGaaGOnamaaCaaaleqabaGaaGymaaaakiabgUcaRiaaigdacaaIYaGaey41aqRaaGymaiaaiAdadaahaaWcbeqaaiaaicdaaaGccqGH9aqpcaaIYaGaaGymaiaaiAdacaaIYaGaaGyoaiaaisdadaWgaaWcbaGaaiikaiaaigdacaaIWaGaaiykaaqabaaaaa@657F@

The hexadecimal system (often called the hex system) is useful in computer work because it is based on powers of 2. Each digit in the hex system is equivalent to a four-digit binary number. Table below shows some hex/decimal/binary equivalents.

Hexadecimal Digit Decimal Equivalent Binary Equivalent
0 0 0000
1 1 0001
2 2 0010
3 3 0011
4 4 0100
5 5 0101
6 6 0110
7 7 0111
8 8 1000
9 9 1001
A 10 1010
B 11 1011
C 12 1100
D 13 1101
E 14 1110
F 15 1111
10 16 10000
F0 240 11110000
FF 255 11111111

Octal system

Binary is also easily converted to the octal numeral system, since octal uses a radix of 8, which is a power of two (namely, 23, so it takes exactly three binary digits to represent an octal digit). The correspondence between octal and binary numerals is the same as for the first eight digits of hexadecimal in the table above. Binary 000 is equivalent to the octal digit 0, binary 111 is equivalent to octal 7, and so forth.

Converting from octal to binary proceeds in the same fashion as it does for hexadecimal:

65 ( 8 ) = 110 1012 MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqaaeaabiGaciaacaqabeaadaqaaqaaaOqaaiaaiAdacaaI1aWaaSbaaSqaaiaacIcacaaI4aGaaiykaaqabaGccqGH9aqpcaaIXaGaaGymaiaaicdacaaMe8UaaGymaiaaicdacaaIXaGaaGOmaaaa@4161@
17 ( 8 ) = 001 1112 MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqaaeaabiGaciaacaqabeaadaqaaqaaaOqaaiaaigdacaaI3aWaaSbaaSqaaiaacIcacaaI4aGaaiykaaqabaGccqGH9aqpcaaIWaGaaGimaiaaigdacaaMc8UaaGjbVlaaigdacaaIXaGaaGymaiaaikdaaaa@42E9@

And from octal to decimal:

235.64 ( 8 ) = 2 × 8 2 + 3 × 8 1 + 5 × 8 0 + 6 × 8 1 + 4 × 8 2 = 157.8125 ( 10 ) MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqaaeaabiGaciaacaqabeaadaqaaqaaaOqaaiaaikdacaaIZaGaaGynaiaac6cacaaI2aGaaGinamaaBaaaleaacaGGOaGaaGioaiaacMcaaeqaaOGaeyypa0JaaGOmaiabgEna0kaaiIdadaahaaWcbeqaaiaaikdaaaGccqGHRaWkcaaIZaGaey41aqRaaGioamaaCaaaleqabaGaaGymaaaakiabgUcaRiaaiwdacqGHxdaTcaaI4aWaaWbaaSqabeaacaaIWaaaaOGaey4kaSIaaGOnaiabgEna0kaaiIdadaahaaWcbeqaaiabgkHiTiaaigdaaaGccqGHRaWkcaaI0aGaey41aqRaaGioamaaCaaaleqabaGaeyOeI0IaaGOmaaaakiabg2da9iaaigdacaaI1aGaaG4naiaac6cacaaI4aGaaGymaiaaikdacaaI1aWaaSbaaSqaaiaacIcacaaIXaGaaGimaiaacMcaaeqaaaaa@6396@

Converting from decimal to base–b

To convert a decimal fraction to another base, say base b, you split it into an integer and a fractional part. Then divide the integer by b repeatedly to get each digit as a remainder. Namely, with value of integer part = d n 1 d n 2 ... d 2 d 1 d 0 ( 10 ) MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqaaeaabiGaciaacaqabeaadaqaaqaaaOqaaiaadsgadaWgaaWcbaGaamOBaiabgkHiTiaaigdaaeqaaOGaamizamaaBaaaleaacaWGUbGaeyOeI0IaaGOmaaqabaGccaGGUaGaaiOlaiaac6cacaWGKbWaaSbaaSqaaiaaikdaaeqaaOGaamizamaaBaaaleaacaaIXaaabeaakiaadsgadaWgaaWcbaGaaGimaiaacIcacaaIXaGaaGimaiaacMcaaeqaaaaa@47BF@ , first divide value by b the remainder is the least significant digit a 0 MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqaaeaabiGaciaacaqabeaadaqaaqaaaOqaaiaadggadaWgaaWcbaGaaGimaaqabaaaaa@37AE@ . Divide the result by b, the remainder is a 1 MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqaaeaabiGaciaacaqabeaadaqaaqaaaOqaaiaadggadaWgaaWcbaGaaGymaaqabaaaaa@37AF@ .Continue this process until the result is zero, giving the most significant digit, a n 1 MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqaaeaabiGaciaacaqabeaadaqaaqaaaOqaaiaadggadaWgaaWcbaGaamOBaiabgkHiTiaaigdaaeqaaaaa@398F@ . Let's convert 43868 ( 10 ) MathType@MTEF@5@5@+=feaagaart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr0=vqpWqaaeaabiGaciaacaqabeaadaqaaqaaaOqaaiaaisdacaaIZaGaaGioaiaaiAdacaaI4aWaaSbaaSqaaiaacIcacaaIXaGaaGimaiaacMcaaeqaaaaa@3C9B@ to hexadecimal:

Questions & Answers

A golfer on a fairway is 70 m away from the green, which sits below the level of the fairway by 20 m. If the golfer hits the ball at an angle of 40° with an initial speed of 20 m/s, how close to the green does she come?
Aislinn Reply
cm
tijani
what is titration
John Reply
what is physics
Siyaka Reply
A mouse of mass 200 g falls 100 m down a vertical mine shaft and lands at the bottom with a speed of 8.0 m/s. During its fall, how much work is done on the mouse by air resistance
Jude Reply
Can you compute that for me. Ty
Jude
what is the dimension formula of energy?
David Reply
what is viscosity?
David
what is inorganic
emma Reply
what is chemistry
Youesf Reply
what is inorganic
emma
Chemistry is a branch of science that deals with the study of matter,it composition,it structure and the changes it undergoes
Adjei
please, I'm a physics student and I need help in physics
Adjanou
chemistry could also be understood like the sexual attraction/repulsion of the male and female elements. the reaction varies depending on the energy differences of each given gender. + masculine -female.
Pedro
A ball is thrown straight up.it passes a 2.0m high window 7.50 m off the ground on it path up and takes 1.30 s to go past the window.what was the ball initial velocity
Krampah Reply
2. A sled plus passenger with total mass 50 kg is pulled 20 m across the snow (0.20) at constant velocity by a force directed 25° above the horizontal. Calculate (a) the work of the applied force, (b) the work of friction, and (c) the total work.
Sahid Reply
you have been hired as an espert witness in a court case involving an automobile accident. the accident involved car A of mass 1500kg which crashed into stationary car B of mass 1100kg. the driver of car A applied his brakes 15 m before he skidded and crashed into car B. after the collision, car A s
Samuel Reply
can someone explain to me, an ignorant high school student, why the trend of the graph doesn't follow the fact that the higher frequency a sound wave is, the more power it is, hence, making me think the phons output would follow this general trend?
Joseph Reply
Nevermind i just realied that the graph is the phons output for a person with normal hearing and not just the phons output of the sound waves power, I should read the entire thing next time
Joseph
Follow up question, does anyone know where I can find a graph that accuretly depicts the actual relative "power" output of sound over its frequency instead of just humans hearing
Joseph
"Generation of electrical energy from sound energy | IEEE Conference Publication | IEEE Xplore" ***ieeexplore.ieee.org/document/7150687?reload=true
Ryan
what's motion
Maurice Reply
what are the types of wave
Maurice
answer
Magreth
progressive wave
Magreth
hello friend how are you
Muhammad Reply
fine, how about you?
Mohammed
hi
Mujahid
A string is 3.00 m long with a mass of 5.00 g. The string is held taut with a tension of 500.00 N applied to the string. A pulse is sent down the string. How long does it take the pulse to travel the 3.00 m of the string?
yasuo Reply
Who can show me the full solution in this problem?
Reofrir Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Introduction to computer science. OpenStax CNX. Jul 29, 2009 Download for free at http://cnx.org/content/col10776/1.1
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Introduction to computer science' conversation and receive update notifications?

Ask