Taught in ECE 124
Binary Numbers
Digital Circuits typically use binary number system where:
- The allowed symbols in the number representation are 0 and 1 (bits)
- The radix is 2
- For an m-bit number where ’s are either 0 or 1
Example:
Value of 125 is represented as in decimal and
Conversion
Given a positive value V in decimal, find it’s binary representation
- If we divide V by 2 we get a quotient and a remainder. The remainder is 0 or 1. Denoting the Quotient as and the remainder as , we can write
- (e.g., )
- If we divide it by 2 and can write where and denote the resulting quotient and remainder, respectively. Now plugging this expression of into that of aforementioned V, we have
E.g.,
We repeat the process until resulting quotient becomes 0
- Suppose this happens after m iterations, i.e., is 0
- We denote the remainders resulted in the process as which are 0 or 1
- Then
- e.g.,