You are Here: Home

8-bit bianry

Announcements Posted on
Last day to win £100 of Amazon vouchers - don't miss out! Take our quick survey to enter 24-10-2016
1. How do I convert numbers to signed 8-bit binary?
Will the value be the same, if it was signed or unsigned?

For example, I've got the number 22 as 00010110, but that's in unsigned 8-bit binary, would it be the same for signed 8-bit binary?
2. 'Unsigned can hold a larger positive value, and no negative value. Unsigned uses the leading bit as a part of the value, while the signed version uses the left-most-bit to identify if the number is positive or negative. Signed integers can hold both positive and negative numbers.'

Do you study computing at A-level at all? In my Computing course we learn two ways to give a binary integer a sign; 2's compliment and sign and magnitude. I'm not sure if there are more standard ways (I'm not at uni yet!), but these are two methods I know that are used to represent negative and positive numbers in binary.

For an 8 bit byte, with 2's compliment...

-22

For an 8 bit byte, with sign and magnitude...

-22

Attached Images

3. (Original post by Me123456789)
How do I convert numbers to signed 8-bit binary?
Will the value be the same, if it was signed or unsigned?

For example, I've got the number 22 as 00010110, but that's in unsigned 8-bit binary, would it be the same for signed 8-bit binary?
That would be the same since it is not negative. If it was a negative number we use the eighth bit as a sign. We set it to 1 for negative and 0 for positive. The number is then written normally. As you can imagine this reduces the number of numbers we can represent since we waste the eighth bit as a sign.
That would be the same since it is not negative. If it was a negative number we use the eighth bit as a sign. We set it to 1 for negative and 0 for positive. The number is then written normally. As you can imagine this reduces the number of numbers we can represent since we waste the eighth bit as a sign.
Thank you
5. (Original post by Me123456789)
Thank you
No problem. Absolutely love the Profile picture/avatar btw xD
6. (Original post by sophiebookley)
'Unsigned can hold a larger positive value, and no negative value. Unsigned uses the leading bit as a part of the value, while the signed version uses the left-most-bit to identify if the number is positive or negative. Signed integers can hold both positive and negative numbers.'

Do you study computing at A-level at all? In my Computing course we learn two ways to give a binary integer a sign; 2's compliment and sign and magnitude. I'm not sure if there are more standard ways (I'm not at uni yet!), but these are two methods I know that are used to represent negative and positive numbers in binary.
Thank you

I never did it at A-level, but I'm doing it at university now.
7. (Original post by Me123456789)
Thank you

I never did it at A-level, but I'm doing it at university now.
Oh wow! I hope you're enjoying it, hopefully I'll be in the same position in September!
8. (Original post by sophiebookley)
Oh wow! I hope you're enjoying it, hopefully I'll be in the same position in September!
It is quite good actually I did struggle with it though
Ooh, you're doing cs? Where are you going?

No problem. Absolutely love the Profile picture/avatar btw xD
]

I don't know if you do this in your A-level but do any of you know how to evaluate the following expression
R2C = M2C – D2C
9. (Original post by Me123456789)
It is quite good actually I did struggle with it though
Ooh, you're doing cs? Where are you going?

]

I don't know if you do this in your A-level but do any of you know how to evaluate the following expression
R2C = M2C – D2C
Afraid not, what topic is this?
Afraid not, what topic is this?
I got it now

It was data representation, two's complement
11. (Original post by Me123456789)
I got it now

It was data representation, two's complement
o.0 we do two's complement but I've never seen R2C and all that :/ ? I've only seen it in relation to Binary?
o.0 we do two's complement but I've never seen R2C and all that :/ ? I've only seen it in relation to Binary?
Yeah it's still about the 8-bit binary stuff but I had to use two's complement
If that makes sense...
13. (Original post by Me123456789)
Yeah it's still about the 8-bit binary stuff but I had to use two's complement
If that makes sense...
o.0
So what exactly does this mean?
R2C = M2C – D2C
Sorry I'm very curious XD

Register

Thanks for posting! You just need to create an account in order to submit the post
1. this can't be left blank
2. this can't be left blank
3. this can't be left blank

6 characters or longer with both numbers and letters is safer

4. this can't be left empty
1. Oops, you need to agree to our Ts&Cs to register

Updated: June 4, 2016
TSR Support Team

We have a brilliant team of more than 60 Support Team members looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

This forum is supported by:
Today on TSR

How does exam reform affect you?

From GCSE to A level, it's all changing

Poll
Useful resources