Computer Science Illuminated
Chapter 2: binary values and number systems
Natural Numbers: zero and any number obtained by repeatedly adding one to it ; example: 0, 1, 2,3,4,5
Negatives Numbers : numbers less than 0
Integers: A natural number, a negative number, zero
Rational Numbers: An integer or the quotient of two integers.
Real Number: any number that
The base of a number determines the number of digitis and the value of digit positions.
- Decimal is base 10 and has 10 digits :0, 1, ,2, 3, 4, 5, 6, 7, 8, 9
- Binary is base 2 and has 2 digits : 0, 1
- For a number to exist in a given base, it can only contain the digits in that base, which range
from 0 up to (but not including) the base.
Bases higher than 10:
How are digits in bases higher than 10 represented?
- With distinct symbols for 10 and above
- Base 16 has 16 digits.