The Gateway to Computer Science Excellence

First time here? Checkout the FAQ!

x

+14 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

+16 votes

Best answer

- All categories
- General Aptitude 1.1k
- Engineering Mathematics 4.5k
- Digital Logic 1.9k
- Programming & DS 3.3k
- Algorithms 2.9k
- Theory of Computation 3.6k
- Compiler Design 1.4k
- Databases 2.7k
- CO & Architecture 2.4k
- Computer Networks 2.7k
- Non GATE 901
- Others 1.2k
- Admissions 246
- Exam Queries 433
- Tier 1 Placement Questions 17
- Job Queries 42
- Projects 4

32,330 questions

39,145 answers

108,247 comments

36,501 users