151 as an 8-Bit Signed Binary Number

Converting base 10 to base 2 n = 8

A= 49 B= 151

By doing so 49 is 00110001 and -49 would be 11001111.

I am having problems with finding 151 and -151 because after the conversion it is already an 8-bit number. 151 is 10010111, but in signed binary doesn't the farthest left digit indicate whether its negative or positive. 1 is negative and I am trying to get positive 151, but within 8-bits. How would I go about this?

1

1 Answer

If you only have 8 bits, then your unsigned range is 0 to 255, which makes your signed range -128 to 127. So you cannot express -151 or 151 as a signed number with only 8 bits.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest