Number system, Computer Engineering

 

Number systems

 

Consider a decimal number:               7654.32

 

Short hand for:            7 * 103 + 6*102 + 5* 101 + 4*100 + 3*10-1 + 2*10-2

 

Likewise binary number:                     1011.011

 

In full:                         1*23 + 0*22 + 1* 21 + 1*20 + 0* 2-1 + 1* 2-2 + 1*2-3

 

In general the number:                        x­2 x1 x0 . x-1 x-2 x-3

 

In base B is equal to:   x­ B2 + x1  B1 + x B0 + x-1  B-1 + x-2  B-2 + x-3 B-3

 

 

Conversion table.

 

Decimal (Base 10)

Binary (Base 2)

Octal (Base 8)

Hexadecimal (Base 16)

0

0000

00

0

1

0001

01

1

2

0010

02

2

3

0011

03

3

4

0100

04

4

5

0101

05

5

6

0110

06

6

7

0111

07

7

8

1000

10

8

9

1001

11

9

10

1010

12

A

11

1011

13

B

12

1100

14

C

13

1101

15

D

14

1110

16

E

15

1111

17

F

 

 

 

Convert decimal to binary by repeated division by two.

 

 e.g. 2510 in binary?

 

25

  2  =

12

remainder 1

12

  2  =

6

remainder 0

6

  2  =

3

remainder 0

3

  2  =

1

remainder 1

1

  2  =

0

remainder 1

 

Read remainders from bottom up.

Convert decimals less than one to binary by repeated multiplication by two.

 

 e.g. 0.62510 in binary?

 

0.625

  2  =

1.25

whole number 1

0.25

  2  =

0.5

whole number 0

0.5

  2  =

1.0

whole number 1

 

Read whole numbers from top down.

 

Therefore 25.62510 = 11001.1012

 

Posted Date: 8/20/2012 10:59:23 PM | Location : United States







Related Discussions:- Number system, Assignment Help, Ask Question on Number system, Get Answer, Expert's Help, Number system Discussions

Write discussion on Number system
Your posts are moderated
Related Questions
he trick to calling script-fu-scripts from any more script is to just reference the main define for the script and not to try to use the pdb call. All the scripts in script-fu shar

Write a short notes on storage classes in C. Every variable and function in C has two attributes : type and storage class. The four storage classes are automatic, external, reg

The analog signal needs to be sampled at a minimum sampling rate of: (A) 2fs                                               (B) 1/(2fs) (C)  fs/2

Explain Classification Based On Grain Size This categorization is based on distinguishing the parallelism in a program to be executed on a multiprocessor system. The concept is

Discuss grade of service. During busy hour, 1500 calls were offered to a group of trunks and 8 calls were lost. The average call duration was 120 seconds. Calculate the traffic off

Rational Robot is a whole set of components for automating the testing of Microsoft Windows client/server and Internet applications. The major component of Robot lets you start

The distinction is semantic. Traditionally, compiled executables (binaries) are known as programs, and interpreted programs are usually known as scripts. In the context of CGI, the

What is a table pool? A table pool (or pool) is used to join several logical tables in the ABAP/4 Dictionary.  The definition of a pool having of at least two key fields and a

Q. Characteristics of input- output channels? The I/O channel represents an extension of DMA concept. An I/O channel has ability to execute I/O instructions that gives complete

Q. Explain about Quarter Inch Cartridge Tapes? Quarter Inch Cartridge Tapes (QIC Standard): These tape cartridges record information sequentially in a track with one head. Wh