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
Problem Specification : Hence given the above context for "ILP" there we can state the learning problem as follows: that we are given a set of positive and a set of negative e

Standard Query Operators are executed as extension methods in .NET Framework. These Standard Query Operators can be used to work with any collection of objects that executes the IE

Explain in detail companding. Companding: It is the process of compressing and expanding. This includes compressing the signal at the transmitter and expanding this at the re

Q. Explain about RISC ARCHITECTURE? Let's first list some significant considerations of RISC architecture: 1. RISC functions are kept simple unless there is a very good reas

At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with thes

How Online Databases Work? An online or web-based database keeps data on a cloud of servers somewhere on the Internet, which is accessible by any authorized user with an Intern

The concept of clustering is definite as the use of multiple computers, typically PCs or multiple storage devices, UNIX workstations, and their interconnections, to form what appea

Al l exceptions in Java are subclasses of built in class called? Each exception in Java are subclasses of make in class termed as Throwable.

Von Neumann architecture was first majoranticipated structure for general-purpose computer. However before consideringmain components of von Neumann architecture let us first elabo

What is the meaning of Proper programming Proper programming of the ports of the company's Web server through detection of IP addresses could be an excellent strategy or solut