An Introduction to Computer Science & Programming | LECT 10.4: The Complements Representation for Negative Numbers
Lecture 10: Number Systems, Binary Arithmetic, & the Complements Representation
Section 10.4: The Complements Representation for Negative Numbers
- Binary Arithmetic - the Subtraction
- Why do we study Complements?
- Subtraction with Complements
- The Complements Representation for Negative Numbers
- r's complement [Radix Complement]: 10’s Complement & 2’s Complement
- (r - 1)'s complement [Diminished Radix Complement]: 9’s Complement & 1’s Complement
Lecture Notes (Lecture Slides in PDF) + Exercises (Problem Sheets) + Lecture Codes (Source Codes for Examples in Lecture Notes) are all available at the following link: https://drive.google.com/drive/folders/1RTakuNor6594Z289NWygz1lmd-jjHHQ-
Subscribe and hit the bell to see new videos: https://www.youtube.com/AmrSGhoneim?sub_confirmation=1
Additional Resources:
1) Binary Addition and Subtraction With Negative Numbers, 2's Complements & Signed Magnitude: https://www.youtube.com/watch?v=sJXTo3EZoxM
2) Binary Subtraction using 1's Complement: https://www.youtube.com/watch?v=kx8DFNf6pQU
3) Binary Subtraction using 2's Complement: https://www.youtube.com/watch?v=L_m7jBvtzpQ
#ComputerScience #Programming #C #C++ #Coding #Technology #Programmer #Developer #Arabic