Page 1 of 2
Let 'em say we're crazy and count to a MINUS million in binary!
Posted: October 18th, 2014, 6:44 pm
by pinkteddyx64
The same rules apply as with the other counting threads.
If TSR beats us with this, I'll sue Grace Slick and Digital Spy.
I'll be the first.
1111.
Re: Let 'em say we're crazy and get to a MINUS million in bi
Posted: October 18th, 2014, 6:55 pm
by pinkteddyx64
1110.
Re: Let 'em say we're crazy and get to a MINUS million in bi
Posted: October 18th, 2014, 6:55 pm
by pinkteddyx64
1101.
Re: Let 'em say we're crazy and get to a MINUS million in bi
Posted: October 18th, 2014, 6:55 pm
by pinkteddyx64
1100.
Re: Let 'em say we're crazy and get to a MINUS million in bi
Posted: October 18th, 2014, 6:56 pm
by pinkteddyx64
1011.
Re: Let 'em say we're crazy and get to a MINUS million in bi
Posted: October 18th, 2014, 6:57 pm
by spotify95
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_complementTo 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
Re: Let 'em say we're crazy and get to a MINUS million in bi
Posted: October 18th, 2014, 8:00 pm
by spotify95
1001
Re: Let 'em say we're crazy and get to a MINUS million in bi
Posted: October 18th, 2014, 9:39 pm
by margalo
1000
Re: Let 'em say we're crazy and get to a MINUS million in bi
Posted: October 19th, 2014, 12:30 pm
by margalo
10111
Re: Let 'em say we're crazy and get to a MINUS million in bi
Posted: October 19th, 2014, 12:30 pm
by margalo
10110
Re: Let 'em say we're crazy and get to a MINUS million in bi
Posted: October 19th, 2014, 12:30 pm
by margalo
10101
Re: Let 'em say we're crazy and get to a MINUS million in bi
Posted: October 19th, 2014, 12:31 pm
by margalo
10100
Re: Let 'em say we're crazy and get to a MINUS million in bi
Posted: October 19th, 2014, 6:06 pm
by spotify95
10011
Re: Let 'em say we're crazy and get to a MINUS million in bi
Posted: October 20th, 2014, 12:16 am
by margalo
10010
Re: Let 'em say we're crazy and get to a MINUS million in bi
Posted: October 30th, 2014, 10:40 pm
by spotify95
10001
Re: Let 'em say we're crazy and get to a MINUS million in binary
Posted: January 13th, 2015, 10:22 pm
by spotify95
10000
Re: Let 'em say we're crazy and get to a MINUS million in binary
Posted: April 17th, 2015, 10:33 pm
by spotify95
101111
Re: Let 'em say we're crazy and count to a MINUS million in binary!
Posted: January 15th, 2018, 6:49 pm
by lucozadesp0rt
101110
Re: Let 'em say we're crazy and get to a MINUS million in bi
Posted: January 15th, 2018, 6:55 pm
by lucozadesp0rt
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_complementTo 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
101101
Re: Let 'em say we're crazy and count to a MINUS million in binary!
Posted: January 15th, 2018, 6:57 pm
by lucozadesp0rt
101100
Re: Let 'em say we're crazy and count to a MINUS million in binary!
Posted: January 15th, 2018, 6:59 pm
by lucozadesp0rt
101011
Re: Let 'em say we're crazy and get to a MINUS million in bi
Posted: January 15th, 2018, 10:25 pm
by spotify95
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_complementTo 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.htmAnd 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
Re: Let 'em say we're crazy and get to a MINUS million in bi
Posted: January 16th, 2018, 2:00 pm
by lucozadesp0rt
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_complementTo 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.htmAnd 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
Re: Let 'em say we're crazy and count to a MINUS million in binary!
Posted: January 16th, 2018, 2:03 pm
by lucozadesp0rt
100111
Re: Let 'em say we're crazy and count to a MINUS million in binary!
Posted: January 16th, 2018, 2:03 pm
by lucozadesp0rt
100110