TrickyDicky
Advanced Member level 7
- Joined
- Jun 7, 2010
- Messages
- 7,110
- Helped
- 2,081
- Reputation
- 4,181
- Reaction score
- 2,048
- Trophy points
- 1,393
- Activity points
- 39,769
And also note the difference in resizing the two types.
When resizing an unsigned, you just pre-pend '0's
When you resize signed, you pre-pend the MSB (the sign bit).
When resizing an unsigned, you just pre-pend '0's
When you resize signed, you pre-pend the MSB (the sign bit).