Data types - binary, sign and magnitude and two's complement

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/8

flashcard set

Earn XP

Description and Tags

Represent positive integers in binary. Use of sign and magnitude and two’s complement to represent negative numbers in binary.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

9 Terms

1
New cards

What is the issue with sign and magnitude representation?

There are 2 values for zero. 1000 0000 (-0) and 0000 0000 (+0)

2
New cards

In sign and magnitude representation if the MSB is 1, if the number positive or negative?

negative

3
New cards

In sign and magnitude representation if the MSB is 0, if the number positive or negative?

positive

4
New cards

Convert the denary number -44 into binary using 8 bit sign and magnitude representation

10101100

5
New cards

What is the value of the MSB of a binary number that is n bits long in two’s complement?

-(2^n-1)

6
New cards

What is the value of the MSB for an 8 bit number in two’s complement?

-128 (-2^7)

7
New cards

Steps of fining a negetive number in two’s complement?

  1. Find the positive equivilent

  2. Flip the bits

  3. Add 1

8
New cards

What is the range of values that can be repersented in sign and magnitude for n number of bits

2^(n-1)-1 eg +/1 127 for 8 bits

9
New cards

largest value that can be represented by 8 bit two’s complement

127/01111111