Number System
Number System
Number System
- A numeral/number system is a writing system for expressing
numbers; that is, a mathematical notation for representing
numbers of a given set, using digits or other symbols in a
consistent manner. The same sequence of symbols may represent
different numbers in different numeral systems
- Is a way or methodology on how numbers are represented inside
the computer’s memory. Human beings think in decimal, while
computers process in binary.
Two (2) important concept
1. That all number system follow the concept of positional
notation. This means that the numerical value given to a digit is
determined by its relative position in a given number.
2. That all number systems follow a set of valid values.
Number System Base(n) Valid values
Binary 2 0,1
Decimal 10 0-9
Octal 8 0-7
Hexadecimal 16 0-9,A,B,C,D,E,F
• Uses base 8
• Includes only the digits 0 through 7 ( any digit would make the
number an invalid octal number
Decimal Number Base System
The decimal number system (also called base-ten positional
numeral system, and occasionally called denary or decanary) is
the standard system for denoting integer and non-
integer numbers. It is the extension to non-integer numbers of
the Hindu-Arabic number system. The way of denoting numbers in
the decimal system is often referred to as decimal notation
• Uses base 10
• Includes only the digits 0 through 9 ( any digit would make the
number an invalid octal number
Hexadecimal Number Base System
In mathematics and computing, hexadecimal (also base 16,
or hex) is a positional system that represents numbers using
a base of 16. Unlike the common way of representing numbers
with ten symbols, it uses sixteen distinct symbols, most often the
symbols "0"–"9" to represent values zero to nine, and "A"–"F" (or
alternatively "a"–"f") to represent values ten to fifteen.
• Uses base 16
• A=10, B=11, C=12, D=13, E=14, F=15
Number Base Conversion
Converting from Decimal to other
number bases
Converting from Decimal to Binary
number
Converting from Decimal to Octal
number
Converting from Any base number to
Decimal number
There are two methods for
converting numbers in other bases
to decimal number
1. Multiply and Add