151 as an 8-bit signed binary number -


converting base 10 base 2 n = 8

a= 49 b= 151

by doing 49 00110001 , -49 11001111.

i having problems finding 151 , -151 because after conversion 8-bit number. 151 10010111, in signed binary doesn't farthest left digit indicate whether negative or positive. 1 negative , trying positive 151, within 8-bits. how go this?

if have 8 bits, unsigned range 0 255, makes signed range -128 127. cannot express -151 or 151 signed number 8 bits.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -