Page 1 of 1 [ 5 posts ] 

Jleger91
Yellow-bellied Woodpecker
Yellow-bellied Woodpecker

User avatar

Joined: 31 Mar 2018
Age: 32
Gender: Male
Posts: 66

07 Sep 2022, 8:20 pm

Decode the number above you and state whether it is positive or negative
(if the leftmost bit is 0 it's positive, if 1 it's negative)
Then post your own binary. It can be 8bit, 16bit, 24bit, or 32bit

10101011

On your calculator you can use byte mode for 8bit numbers. It will tell you that a number with a 1 on the far right is negative and a 0 in the far left is positive. Example: 1000 0000 displays as -128



Last edited by Jleger91 on 07 Sep 2022, 8:38 pm, edited 5 times in total.

DeepHour
Veteran
Veteran

User avatar

Joined: 1 Jun 2014
Gender: Male
Posts: 78,192
Location: United Kingdom

07 Sep 2022, 8:24 pm

85?

I don't understand the 'positive or negative' bit (no pun intended).


_________________
On a mountain range
I'm Doctor Strange


Jleger91
Yellow-bellied Woodpecker
Yellow-bellied Woodpecker

User avatar

Joined: 31 Mar 2018
Age: 32
Gender: Male
Posts: 66

07 Sep 2022, 8:27 pm

DeepHour wrote:
85?

I don't understand the 'positive or negative' bit (no pun intended).
If the bit on the far left is 0, it's positive; if it's 1, it's negative. It's negative 85

01011001



Last edited by Jleger91 on 07 Sep 2022, 8:33 pm, edited 1 time in total.

naturalplastic
Veteran
Veteran

User avatar

Joined: 26 Aug 2010
Age: 69
Gender: Male
Posts: 34,143
Location: temperate zone

07 Sep 2022, 8:29 pm

Jleger91 wrote:
DeepHour wrote:
85?

I don't understand the 'positive or negative' bit (no pun intended).
If the bit on the far left is 0, it's positive; if it's 1, it's negative.

01011001

Is that your own rule...that you just concocted for this game (which would be ok)?
Or are you claiming that that is how binary works?



Jleger91
Yellow-bellied Woodpecker
Yellow-bellied Woodpecker

User avatar

Joined: 31 Mar 2018
Age: 32
Gender: Male
Posts: 66

07 Sep 2022, 8:34 pm

naturalplastic wrote:
Jleger91 wrote:
DeepHour wrote:
85?

I don't understand the 'positive or negative' bit (no pun intended).
If the bit on the far left is 0, it's positive; if it's 1, it's negative.

01011001

Is that your own rule...that you just concocted for this game (which would be ok)?
Or are you claiming that that is how binary works?
No, it's legitimate. It's two's complement binary numbers. DeepHour was correct but it was a negative number. The same works on your calculator in programmer mode

01011001 is 89 in decimal, it's a positive number

What is 10010010 00001100?