5
Looping statements Topics Number system and base of number system Conversion among number system Subtraction using 1’s and 2’s complement

Number system

Embed Size (px)

Citation preview

Page 1: Number system

Looping statementsTopics Number system and base of number system Conversion among number system Subtraction using 1’s and 2’s complement

Page 2: Number system

Number system and base Number System: The process of

representing number is known as number system. We normally use Decimal number system to represent number. There are many number system exist in the world. Some are Decimal, Binary, Octal, Hexadecimal number system.

Base of number system: The number of digit used by the specific number system is known as base of that number system.

Page 3: Number system

Continue…Number system

Base Digit

Decimal 10 0-9

Binary 2 0,1

Octal 8 0-7

Hexadecimal 16 0-9,A,B,C,D,E,F

Page 4: Number system

Decimal to Binary, Octal, Hexadecimal Number System

If we want to convert a decimal number system to Binary/Octal/Hexadecimal, the process is the same. In case of integer decimal number, we have to divide the number with corresponding number system’s base successively until we get a zero as quotient and the remainder in opposite order is the result.

In case of exponent/fraction number we have to multiply with corresponding number system’s base successively (only with fraction part) until we get a zero as fraction and the inter part in each multiplication result in regular order is the result.

Page 5: Number system

Number system and base Number System: The process of

representing number is known as number system. We normally use Decimal number system to represent number. There are many number system exist in the world. Some are Decimal, Binary, Octal, Hexadecimal number system.

Base of number system: The number of digit used by the specific number system is known as base of that number system.