Digital Logic Design: Lecture 2 - Number Systems
Digital Logic Design: Lecture 2 - Number Systems
Logical Manipulation
Types:
• r’s complement
• (r-1)’s complement
r’s complement:
Given a positive number N in base r with an integer part of n digits:
{
𝑛
𝑟 𝑠 𝑐𝑜𝑚𝑝𝑙𝑒𝑚𝑒𝑛𝑡 = 𝑟 − 𝑁 𝑓𝑜𝑟 𝑁 ≠ 0
′
0 𝑓𝑜𝑟 𝑁 =0
10’s complement of (52520)10?