The Gateway to Computer Science Excellence

+1 vote

1)-9286+ (+801)=

-9286=100000-9286= 90714

then, 90714+ (+801)=91515

100000-91515=-8485

2)-9286+(-801)

-9286=90714

-801=99199

90714+99199=89913

100000-89913=-10087

+1 vote

Wrong Answer! This is not the proper solution.

This is the proper solution.https://math.stackexchange.com/questions/2168230/how-was-the-10s-complement-calculated-for-the-signed-numbers-below Please edit the answer. The answer srestha has given is subtly wrong.

+1 vote

**1)** $-9286+ (+801)$

10's complement of $-9286$ is $10^{6}-9286$ $= 990714$

$990714 + 816 = 991515$,answer is negative and represented in ten's complement form

or $-( 1000000 - 991515)$ $= -8485$

**2)** $-9286+(-801)$

10's complement of $-801$ is $10^{6}-801$ $= 999199$

$990714 + 999199= 989913$ (discarding overflow)

Converting back to sign magnitude form, $-(1000000 - 989913) = -10087$

0 votes

I'm pretty sure signed 10s complement is just 10s complement except you devote a bit in memory to represent the minus sign. Eg - 9286 is represented as 1 1001 0010 1000 0110 if you are using binary coded decimal, and 9286 is represented as 0 1001 0010 1000 0110 . The minus bit simply tells the machine whether it should perform addition or subtraction. Eg:

(negative number1) + (negative number2) = negative (number1 + number2),

(negative number1) + (positive number2) = (number2 - number1)

- All categories
- General Aptitude 1.9k
- Engineering Mathematics 7.5k
- Digital Logic 2.9k
- Programming and DS 4.9k
- Algorithms 4.4k
- Theory of Computation 6.2k
- Compiler Design 2.1k
- Databases 4.1k
- CO and Architecture 3.4k
- Computer Networks 4.2k
- Non GATE 1.4k
- Others 1.4k
- Admissions 595
- Exam Queries 573
- Tier 1 Placement Questions 23
- Job Queries 72
- Projects 18

50,737 questions

57,336 answers

198,447 comments

105,203 users