The Gateway to Computer Science Excellence

First time here? Checkout the FAQ!

x

+17 votes

Sign extension is a step in

- floating point multiplication
- signed 16 bit integer addition
- arithmetic left shift
- converting a signed integer from one size to another

0110 i want to extend this to 8 bit

as it is sign o so positive number 00000110

if it will be like 1110 then its sign 1 so its -ve number in 1's complement number it will be 10000110... just shift sign bit to msb of extended form ...

and in 2's number representation it will 11111110 ... as 2's complement is weighted ..so simply write sign bit in all places from msb to extra bit in extended form

+18 votes

Best answer

- All categories
- General Aptitude 1.2k
- Engineering Mathematics 4.8k
- Digital Logic 2k
- Programming & DS 3.5k
- Algorithms 3k
- Theory of Computation 3.8k
- Compiler Design 1.5k
- Databases 2.8k
- CO & Architecture 2.5k
- Computer Networks 2.9k
- Non GATE 940
- Others 1.2k
- Admissions 320
- Exam Queries 409
- Tier 1 Placement Questions 17
- Job Queries 52
- Projects 8

34,170 questions

40,846 answers

115,882 comments

39,704 users