Let 'em say we're crazy and count to a MINUS million in binary!

This is the place to post forum game topics. :woo:
spotify95
A jungle man
Posts: 7910
Joined: November 22nd, 2015, 2:24 pm
Reputation: 818
Gender: Male

Re: Let 'em say we're crazy and get to a MINUS million in bi

Postby spotify95 » January 16th, 2018, 3:47 pm

coleslaw wrote:
spotify95 wrote:
coleslaw wrote:
spotify95 wrote:Binary doesn't use a positive or negative sign - it uses the leading digit as wither 0 (positive) or 1 (negative).

Also remember that Binary only uses 1's or 0's.

You'll need to use 2's Complement to get the binary of negative numbers.

http://en.wikipedia.org/wiki/Two's_complement

To work out 2's compliment, firstly find the binary of the positive number (remember to leave a 0 at the front for the sign)
Then invert all of the digits, and finally add 1 to the result.

Eg: 2 in binary is 010
Invert: 101
2's comp: 110.

Hence -6 in binary:
Positive 6: 0110
Invert: 1001
Add 1: 1010

Why do we need twos complement here? Ones compliment is fine enough for this thread

101100


I've had a look here:

https://www.calvin.edu/academic/rit/web ... gative.htm

And it states that although neither system is more correct than the other, two's compliment is more often used.

Just having the leading character for the sign (0 for positive, 1 for negative) can be a bit confusing with the positive number that is bigger by a power of 2. But we can convert to standard binary if required (making sure the leading 1 is kept).

101010

From what I remember twos complement is better and used more because it retains consistency with arithmetic and operations. Since this thread is just listing the minus numbers in order it's not really needed and we can just do:
Find the binary number = 10111
Put sign in front = 010111
Invert = 101000 = -23


Okay we can do that then :)

Whichever method you prefer, is what you can use :)

100101


User avatar
lucozadesp0rt
TBAAJ Volunteer Team
Posts: 8630
Joined: November 28th, 2015, 2:46 am
Reputation: 349
Gender: Male

Re: Let 'em say we're crazy and count to a MINUS million in binary!

Postby lucozadesp0rt » January 16th, 2018, 4:47 pm

100100


User avatar
lucozadesp0rt
TBAAJ Volunteer Team
Posts: 8630
Joined: November 28th, 2015, 2:46 am
Reputation: 349
Gender: Male

Re: Let 'em say we're crazy and count to a MINUS million in binary!

Postby lucozadesp0rt » January 16th, 2018, 4:48 pm

100011


User avatar
lucozadesp0rt
TBAAJ Volunteer Team
Posts: 8630
Joined: November 28th, 2015, 2:46 am
Reputation: 349
Gender: Male

Re: Let 'em say we're crazy and count to a MINUS million in binary!

Postby lucozadesp0rt » January 16th, 2018, 4:48 pm

100010


User avatar
lucozadesp0rt
TBAAJ Volunteer Team
Posts: 8630
Joined: November 28th, 2015, 2:46 am
Reputation: 349
Gender: Male

Re: Let 'em say we're crazy and count to a MINUS million in binary!

Postby lucozadesp0rt » January 16th, 2018, 4:49 pm

100001


User avatar
lucozadesp0rt
TBAAJ Volunteer Team
Posts: 8630
Joined: November 28th, 2015, 2:46 am
Reputation: 349
Gender: Male

Re: Let 'em say we're crazy and count to a MINUS million in binary!

Postby lucozadesp0rt » January 16th, 2018, 4:50 pm

100000


User avatar
lucozadesp0rt
TBAAJ Volunteer Team
Posts: 8630
Joined: November 28th, 2015, 2:46 am
Reputation: 349
Gender: Male

Re: Let 'em say we're crazy and count to a MINUS million in binary!

Postby lucozadesp0rt » January 16th, 2018, 4:51 pm

1011111 new bit!


spotify95
A jungle man
Posts: 7910
Joined: November 22nd, 2015, 2:24 pm
Reputation: 818
Gender: Male

Re: Let 'em say we're crazy and count to a MINUS million in binary!

Postby spotify95 » October 11th, 2019, 10:56 am

1101111.


User avatar
unturned_cake
The jungle girl
Posts: 11566
Joined: November 2nd, 2019, 10:05 pm
Reputation: 204
Location: Cleft in the rock
Gender: Female

Re: Let 'em say we're crazy and count to a MINUS million in binary!

Postby unturned_cake » November 5th, 2019, 8:44 am

dunno how to 2s complemnt :o
17)
1101110


User avatar
unturned_cake
The jungle girl
Posts: 11566
Joined: November 2nd, 2019, 10:05 pm
Reputation: 204
Location: Cleft in the rock
Gender: Female

Re: Let 'em say we're crazy and count to a MINUS million in binary!

Postby unturned_cake » November 5th, 2019, 8:45 am

18)
1101101


User avatar
unturned_cake
The jungle girl
Posts: 11566
Joined: November 2nd, 2019, 10:05 pm
Reputation: 204
Location: Cleft in the rock
Gender: Female

Re: Let 'em say we're crazy and count to a MINUS million in binary!

Postby unturned_cake » November 5th, 2019, 8:46 am

19)
1101100


User avatar
unturned_cake
The jungle girl
Posts: 11566
Joined: November 2nd, 2019, 10:05 pm
Reputation: 204
Location: Cleft in the rock
Gender: Female

Re: Let 'em say we're crazy and count to a MINUS million in binary!

Postby unturned_cake » November 5th, 2019, 8:48 am

20)
1101011


User avatar
unturned_cake
The jungle girl
Posts: 11566
Joined: November 2nd, 2019, 10:05 pm
Reputation: 204
Location: Cleft in the rock
Gender: Female

Re: Let 'em say we're crazy and count to a MINUS million in binary!

Postby unturned_cake » November 5th, 2019, 8:48 am

21)
1101010


spotify95
A jungle man
Posts: 7910
Joined: November 22nd, 2015, 2:24 pm
Reputation: 818
Gender: Male

Re: Let 'em say we're crazy and count to a MINUS million in binary!

Postby spotify95 » November 8th, 2019, 11:18 pm

unturned_cake wrote:dunno how to 2s complemnt :o
17)
1101110

Looks about right :) Negative binary is more difficult than positive binary, but I'm sure you'll get it :)

1101001


User avatar
unturned_cake
The jungle girl
Posts: 11566
Joined: November 2nd, 2019, 10:05 pm
Reputation: 204
Location: Cleft in the rock
Gender: Female

Re: Let 'em say we're crazy and count to a MINUS million in binary!

Postby unturned_cake » November 9th, 2019, 9:40 am

spotify95 wrote:
unturned_cake wrote:dunno how to 2s complemnt :o
17)
1101110

Looks about right :) Negative binary is more difficult than positive binary, but I'm sure you'll get it :)

1101001


Yeet :gah: thnx :D
23)

1101000


spotify95
A jungle man
Posts: 7910
Joined: November 22nd, 2015, 2:24 pm
Reputation: 818
Gender: Male

Re: Let 'em say we're crazy and count to a MINUS million in binary!

Postby spotify95 » November 9th, 2019, 6:28 pm

unturned_cake wrote:
spotify95 wrote:
unturned_cake wrote:dunno how to 2s complemnt :o
17)
1101110

Looks about right :) Negative binary is more difficult than positive binary, but I'm sure you'll get it :)

1101001


Yeet :gah: thnx :D
23)

1101000

The converter I linked you to also does 2s compliment negative binary

1100111


User avatar
unturned_cake
The jungle girl
Posts: 11566
Joined: November 2nd, 2019, 10:05 pm
Reputation: 204
Location: Cleft in the rock
Gender: Female

Re: Let 'em say we're crazy and count to a MINUS million in binary!

Postby unturned_cake » November 11th, 2019, 8:45 am

1100110


User avatar
unturned_cake
The jungle girl
Posts: 11566
Joined: November 2nd, 2019, 10:05 pm
Reputation: 204
Location: Cleft in the rock
Gender: Female

Re: Let 'em say we're crazy and count to a MINUS million in binary!

Postby unturned_cake » November 11th, 2019, 8:46 am

1100101


User avatar
unturned_cake
The jungle girl
Posts: 11566
Joined: November 2nd, 2019, 10:05 pm
Reputation: 204
Location: Cleft in the rock
Gender: Female

Re: Let 'em say we're crazy and count to a MINUS million in binary!

Postby unturned_cake » November 11th, 2019, 8:47 am

1100100


User avatar
unturned_cake
The jungle girl
Posts: 11566
Joined: November 2nd, 2019, 10:05 pm
Reputation: 204
Location: Cleft in the rock
Gender: Female

Re: Let 'em say we're crazy and count to a MINUS million in binary!

Postby unturned_cake » November 11th, 2019, 8:47 am

28)
1100011


User avatar
unturned_cake
The jungle girl
Posts: 11566
Joined: November 2nd, 2019, 10:05 pm
Reputation: 204
Location: Cleft in the rock
Gender: Female

Re: Let 'em say we're crazy and count to a MINUS million in binary!

Postby unturned_cake » November 11th, 2019, 8:47 am

1100010


User avatar
unturned_cake
The jungle girl
Posts: 11566
Joined: November 2nd, 2019, 10:05 pm
Reputation: 204
Location: Cleft in the rock
Gender: Female

Re: Let 'em say we're crazy and count to a MINUS million in binary!

Postby unturned_cake » November 11th, 2019, 8:48 am

1100001
30



Return to “Forum Games”

Who is online

Users browsing this forum: No registered users and 20 guests

cron