English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

write results in binary and decimal.

2007-09-30 17:26:35 · 6 answers · asked by mathgeek 1 in Science & Mathematics Engineering

6 answers

2^(n -1) -1 for positive numbers
-2^(n-1) for negative numbers.
n = number of bits.

In your case which is also called signed numbers +127 to -128.

2007-09-30 18:05:55 · answer #1 · answered by Jeffrey S 2 · 3 0

2's supplement potential to make a favorable quantity a detrimental you invert all the bits (ie one million turns into 0 and 0 turns right into one million), then upload one million to the quantity. the 1st bit is reserved for indicating no remember if the quantity is detrimental or valuable. If it particularly is one million meaning the quantity is detrimental, and 0 potential valuable. So b) is the only one which could properly be a favorable quantity.

2017-01-02 20:51:13 · answer #2 · answered by ? 3 · 0 0

(11111111)binary = 1x2^0 + 1x2^1 + 1x2^2 + 1x2^3 + 1x2^4 + 1x2^5 + 1x2^6 + 1x2^7 = 1 + 2 + 4 + 8 + 16 + 32 + 64 + 128 = (255)decimal.

2007-09-30 17:50:50 · answer #3 · answered by man_mus_wack1 4 · 0 3

I dont know , however I love digital and how relatively easy it is
so,
I like your line of questioning
and will work on this
( im not sure what you mean by 2's compliment code , but i am intrigued )

2007-09-30 17:34:45 · answer #4 · answered by Anonymous · 0 0

11111111= 255 (0 is a null digit but still a place holder so the "place" count is 256) Each place is a power of 2.

2007-09-30 17:51:36 · answer #5 · answered by Dusty 7 · 0 3

01111111 = 127

2007-09-30 17:31:59 · answer #6 · answered by Charu Chandra Goel 5 · 4 0

fedest.com, questions and answers