Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
2's complement addition of two negative numbers
Parimal Paritosh
asked
in
Digital Logic
Sep 20, 2017
3,828
views
0
votes
0
votes
Please give me an example of adding two negative numbers using 2's complement number system.
Let's say:
-7 + (-6)
digital-logic
turing-machine
theory-of-computation
number
Parimal Paritosh
asked
in
Digital Logic
Sep 20, 2017
by
Parimal Paritosh
3.8k
views
answer
comment
Follow
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
3
Answers
1
vote
1
vote
1001(-7) + 1010(-6) =10011(result is in 2's form)
10011(-13)
01100
+1
=1101(+13)
Ankit001
answered
Sep 21, 2017
by
Ankit001
comment
Follow
share this
0 Comments
Please
log in
or
register
to add a comment.
0
votes
0
votes
-7 + (-6) = -13
13 = 00001101 (in 8 bit format,,,,,,+ve number represent in true form)
-13 = 11110011 (in 2's compliment)
pawan kumarln
answered
Sep 21, 2017
by
pawan kumarln
comment
Follow
share this
0 Comments
Please
log in
or
register
to add a comment.
0
votes
0
votes
+Range of 2s compliment is -(2^n) to +(2^n-1). So with 4 bits we can represent numbers between -8 to +7.
-7 in 2s compliment = 1001
-6 in 2s compliment = 1010
1001+1010= 0011 with carry 1. Carry of the sign bit and carry into the sign bit are different so overflow occured here.
Answer is 1-0011 in 2s compliment.
so answer is 011 in 2s compliment.
♥_Less
answered
Oct 7, 2017
by
♥_Less
comment
Follow
share this
0 Comments
Please
log in
or
register
to add a comment.
← Previous
Next →
← Previous in category
Next in category →
Related questions
0
votes
0
votes
1
answer
1
Parimal Paritosh
asked
in
Digital Logic
Sep 21, 2017
443
views
Representation of negative numbers in unsigned representation
How are negative numbers represented in unsigned binary representation? Example: 0001 -0010 ==== 1111 The result is the negative of 2's complement = -0001 But how is this -0001 represented in unsigned binary?
Parimal Paritosh
asked
in
Digital Logic
Sep 21, 2017
by
Parimal Paritosh
443
views
digital-logic
number
5
votes
5
votes
1
answer
2
pC
asked
in
CO and Architecture
Nov 27, 2015
1,258
views
Which of the following result overflow with 2's complement arithmetic ?
1 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 + 1 1 1 1 1 1 1 1 0 1 0 0 0 0 0 0 + 0 1 1 0 0 0 0 0 Please justify your answer. I'm not getting a clue whether the given number is in 2's complement . Should I have to find 2's complenet of the given number or not
pC
asked
in
CO and Architecture
Nov 27, 2015
by
pC
1.3k
views
number-representation
number
0
votes
0
votes
0
answers
3
kd.....
asked
in
Quantitative Aptitude
Jun 7, 2018
257
views
self doubt Irrational numbers
did there is any number which has the recursive decimal and it is irrational? did there is any number which is neither recursive nor terminating decimal still expressed as p/q form?
kd.....
asked
in
Quantitative Aptitude
Jun 7, 2018
by
kd.....
257
views
quantitative-aptitude
number
1
vote
1
vote
0
answers
4
Ketty
asked
in
Unknown Category
Jun 8, 2016
553
views
in 2's complement addition overflow is flagged
Ketty
asked
in
Unknown Category
Jun 8, 2016
by
Ketty
553
views
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy