Open the App

Subjects

251

8 Dec 2025

3 pages

Understanding Binary Fractions: Two's Complement and Sign-Magnitude

Ever wondered how computers handle decimal numbers and negative values?... Show more

Page 1
Page 2
Page 3
1 / 3
30010000001010110100101111101000010
10101110111101111101000011111001
001011100010101
0010111100
010010
12
34
0.1
0.01
Fractions in Binary
Bi

Binary Fractions

Just like denary decimals, binary fractions use positions to the right of a decimal point to represent parts of a whole. Each position represents a fraction with powers of 2 in the denominator.

The pattern is straightforward: after the decimal point, positions represent 1/2, 1/4, 1/8, 1/16, and so on. For example, 0.1 in binary equals 1/2 (0.5 in denary), whilst 0.01 equals 1/4 (0.25 in denary).

Quick Tip: Remember that each position after the decimal point halves in value, just like whole number positions double going left!

Converting becomes easier once you recognise these fraction patterns. The binary 0.101 represents 1/2 + 1/8, which equals 0.5 + 0.125 = 0.625 in denary.

30010000001010110100101111101000010
10101110111101111101000011111001
001011100010101
0010111100
010010
12
34
0.1
0.01
Fractions in Binary
Bi

Sign and Magnitude vs Two's Complement

Computers need ways to represent negative numbers, and there are two main methods you'll encounter. Sign and magnitude is the simpler approach - it uses the leftmost bit as a sign indicator.

In sign and magnitude, the most significant bit acts like a positive or negative sign. A 0 means positive, whilst a 1 means negative. So +16 and -16 look identical except for that first bit.

The problem? Arithmetic operations become tricky with this system. That's where two's complement comes in - a more sophisticated method where the leftmost bit represents an actual negative value rather than just a sign.

Key Point: Two's complement makes computer arithmetic much easier because addition and subtraction work the same way for positive and negative numbers!

Two's complement uses the leftmost bit to represent a negative number like128inan8bitsystemlike -128 in an 8-bit system, making calculations more straightforward for processors.

30010000001010110100101111101000010
10101110111101111101000011111001
001011100010101
0010111100
010010
12
34
0.1
0.01
Fractions in Binary
Bi

Converting to Two's Complement

Converting positive numbers to negative using two's complement follows a specific three-step process that's actually quite manageable once you practise it.

Start with your positive binary number written out completely. Then, working from right to left, copy each digit exactly until you reach the first 1 - copy that 1 as well.

From that point onwards, flip every remaining bit. All 0s become 1s, and all 1s become 0s. The result is your negative number in two's complement form.

Memory Trick: Think "copy to the first 1, then flip the rest" - this method works every time and saves you from making mistakes!

This system makes computer arithmetic work seamlessly. Unlike sign and magnitude, you can add and subtract two's complement numbers using the same circuits, which is why virtually all modern computers use this method.



We thought you’d never ask...

What is the Knowunity AI companion?

Our AI Companion is a student-focused AI tool that offers more than just answers. Built on millions of Knowunity resources, it provides relevant information, personalised study plans, quizzes, and content directly in the chat, adapting to your individual learning journey.

Where can I download the Knowunity app?

You can download the app from Google Play Store and Apple App Store.

Is Knowunity really free of charge?

That's right! Enjoy free access to study content, connect with fellow students, and get instant help – all at your fingertips.

Most popular content in Computer Science

Most popular content

Can't find what you're looking for? Explore other subjects.

Students love us — and so will you.

4.9/5

App Store

4.8/5

Google Play

The app is very easy to use and well designed. I have found everything I was looking for so far and have been able to learn a lot from the presentations! I will definitely use the app for a class assignment! And of course it also helps a lot as an inspiration.

Stefan S

iOS user

This app is really great. There are so many study notes and help [...]. My problem subject is French, for example, and the app has so many options for help. Thanks to this app, I have improved my French. I would recommend it to anyone.

Samantha Klich

Android user

Wow, I am really amazed. I just tried the app because I've seen it advertised many times and was absolutely stunned. This app is THE HELP you want for school and above all, it offers so many things, such as workouts and fact sheets, which have been VERY helpful to me personally.

Anna

iOS user

Best app on earth! no words because it’s too good

Thomas R

iOS user

Just amazing. Let's me revise 10x better, this app is a quick 10/10. I highly recommend it to anyone. I can watch and search for notes. I can save them in the subject folder. I can revise it any time when I come back. If you haven't tried this app, you're really missing out.

Basil

Android user

This app has made me feel so much more confident in my exam prep, not only through boosting my own self confidence through the features that allow you to connect with others and feel less alone, but also through the way the app itself is centred around making you feel better. It is easy to navigate, fun to use, and helpful to anyone struggling in absolutely any way.

David K

iOS user

The app's just great! All I have to do is enter the topic in the search bar and I get the response real fast. I don't have to watch 10 YouTube videos to understand something, so I'm saving my time. Highly recommended!

Sudenaz Ocak

Android user

In school I was really bad at maths but thanks to the app, I am doing better now. I am so grateful that you made the app.

Greenlight Bonnie

Android user

very reliable app to help and grow your ideas of Maths, English and other related topics in your works. please use this app if your struggling in areas, this app is key for that. wish I'd of done a review before. and it's also free so don't worry about that.

Rohan U

Android user

I know a lot of apps use fake accounts to boost their reviews but this app deserves it all. Originally I was getting 4 in my English exams and this time I got a grade 7. I didn’t even know about this app three days until the exam and it has helped A LOT. Please actually trust me and use it as I’m sure you too will see developments.

Xander S

iOS user

THE QUIZES AND FLASHCARDS ARE SO USEFUL AND I LOVE THE SCHOOLGPT. IT ALSO IS LITREALLY LIKE CHATGPT BUT SMARTER!! HELPED ME WITH MY MASCARA PROBLEMS TOO!! AS WELL AS MY REAL SUBJECTS ! DUHHH 😍😁😲🤑💗✨🎀😮

Elisha

iOS user

This apps acc the goat. I find revision so boring but this app makes it so easy to organize it all and then you can ask the freeeee ai to test yourself so good and you can easily upload your own stuff. highly recommend as someone taking mocks now

Paul T

iOS user

The app is very easy to use and well designed. I have found everything I was looking for so far and have been able to learn a lot from the presentations! I will definitely use the app for a class assignment! And of course it also helps a lot as an inspiration.

Stefan S

iOS user

This app is really great. There are so many study notes and help [...]. My problem subject is French, for example, and the app has so many options for help. Thanks to this app, I have improved my French. I would recommend it to anyone.

Samantha Klich

Android user

Wow, I am really amazed. I just tried the app because I've seen it advertised many times and was absolutely stunned. This app is THE HELP you want for school and above all, it offers so many things, such as workouts and fact sheets, which have been VERY helpful to me personally.

Anna

iOS user

Best app on earth! no words because it’s too good

Thomas R

iOS user

Just amazing. Let's me revise 10x better, this app is a quick 10/10. I highly recommend it to anyone. I can watch and search for notes. I can save them in the subject folder. I can revise it any time when I come back. If you haven't tried this app, you're really missing out.

Basil

Android user

This app has made me feel so much more confident in my exam prep, not only through boosting my own self confidence through the features that allow you to connect with others and feel less alone, but also through the way the app itself is centred around making you feel better. It is easy to navigate, fun to use, and helpful to anyone struggling in absolutely any way.

David K

iOS user

The app's just great! All I have to do is enter the topic in the search bar and I get the response real fast. I don't have to watch 10 YouTube videos to understand something, so I'm saving my time. Highly recommended!

Sudenaz Ocak

Android user

In school I was really bad at maths but thanks to the app, I am doing better now. I am so grateful that you made the app.

Greenlight Bonnie

Android user

very reliable app to help and grow your ideas of Maths, English and other related topics in your works. please use this app if your struggling in areas, this app is key for that. wish I'd of done a review before. and it's also free so don't worry about that.

Rohan U

Android user

I know a lot of apps use fake accounts to boost their reviews but this app deserves it all. Originally I was getting 4 in my English exams and this time I got a grade 7. I didn’t even know about this app three days until the exam and it has helped A LOT. Please actually trust me and use it as I’m sure you too will see developments.

Xander S

iOS user

THE QUIZES AND FLASHCARDS ARE SO USEFUL AND I LOVE THE SCHOOLGPT. IT ALSO IS LITREALLY LIKE CHATGPT BUT SMARTER!! HELPED ME WITH MY MASCARA PROBLEMS TOO!! AS WELL AS MY REAL SUBJECTS ! DUHHH 😍😁😲🤑💗✨🎀😮

Elisha

iOS user

This apps acc the goat. I find revision so boring but this app makes it so easy to organize it all and then you can ask the freeeee ai to test yourself so good and you can easily upload your own stuff. highly recommend as someone taking mocks now

Paul T

iOS user

 

Computer Science

251

8 Dec 2025

3 pages

Understanding Binary Fractions: Two's Complement and Sign-Magnitude

Ever wondered how computers handle decimal numbers and negative values? Binary isn't just about whole numbers - it can represent fractions and negative numbers too, using clever systems that make computer calculations possible.

30010000001010110100101111101000010
10101110111101111101000011111001
001011100010101
0010111100
010010
12
34
0.1
0.01
Fractions in Binary
Bi

Sign up to see the contentIt's free!

Access to all documents

Improve your grades

Join milions of students

By signing up you accept Terms of Service and Privacy Policy

Binary Fractions

Just like denary decimals, binary fractions use positions to the right of a decimal point to represent parts of a whole. Each position represents a fraction with powers of 2 in the denominator.

The pattern is straightforward: after the decimal point, positions represent 1/2, 1/4, 1/8, 1/16, and so on. For example, 0.1 in binary equals 1/2 (0.5 in denary), whilst 0.01 equals 1/4 (0.25 in denary).

Quick Tip: Remember that each position after the decimal point halves in value, just like whole number positions double going left!

Converting becomes easier once you recognise these fraction patterns. The binary 0.101 represents 1/2 + 1/8, which equals 0.5 + 0.125 = 0.625 in denary.

30010000001010110100101111101000010
10101110111101111101000011111001
001011100010101
0010111100
010010
12
34
0.1
0.01
Fractions in Binary
Bi

Sign up to see the contentIt's free!

Access to all documents

Improve your grades

Join milions of students

By signing up you accept Terms of Service and Privacy Policy

Sign and Magnitude vs Two's Complement

Computers need ways to represent negative numbers, and there are two main methods you'll encounter. Sign and magnitude is the simpler approach - it uses the leftmost bit as a sign indicator.

In sign and magnitude, the most significant bit acts like a positive or negative sign. A 0 means positive, whilst a 1 means negative. So +16 and -16 look identical except for that first bit.

The problem? Arithmetic operations become tricky with this system. That's where two's complement comes in - a more sophisticated method where the leftmost bit represents an actual negative value rather than just a sign.

Key Point: Two's complement makes computer arithmetic much easier because addition and subtraction work the same way for positive and negative numbers!

Two's complement uses the leftmost bit to represent a negative number like128inan8bitsystemlike -128 in an 8-bit system, making calculations more straightforward for processors.

30010000001010110100101111101000010
10101110111101111101000011111001
001011100010101
0010111100
010010
12
34
0.1
0.01
Fractions in Binary
Bi

Sign up to see the contentIt's free!

Access to all documents

Improve your grades

Join milions of students

By signing up you accept Terms of Service and Privacy Policy

Converting to Two's Complement

Converting positive numbers to negative using two's complement follows a specific three-step process that's actually quite manageable once you practise it.

Start with your positive binary number written out completely. Then, working from right to left, copy each digit exactly until you reach the first 1 - copy that 1 as well.

From that point onwards, flip every remaining bit. All 0s become 1s, and all 1s become 0s. The result is your negative number in two's complement form.

Memory Trick: Think "copy to the first 1, then flip the rest" - this method works every time and saves you from making mistakes!

This system makes computer arithmetic work seamlessly. Unlike sign and magnitude, you can add and subtract two's complement numbers using the same circuits, which is why virtually all modern computers use this method.

We thought you’d never ask...

What is the Knowunity AI companion?

Our AI Companion is a student-focused AI tool that offers more than just answers. Built on millions of Knowunity resources, it provides relevant information, personalised study plans, quizzes, and content directly in the chat, adapting to your individual learning journey.

Where can I download the Knowunity app?

You can download the app from Google Play Store and Apple App Store.

Is Knowunity really free of charge?

That's right! Enjoy free access to study content, connect with fellow students, and get instant help – all at your fingertips.

Most popular content in Computer Science

Most popular content

Can't find what you're looking for? Explore other subjects.

Students love us — and so will you.

4.9/5

App Store

4.8/5

Google Play

The app is very easy to use and well designed. I have found everything I was looking for so far and have been able to learn a lot from the presentations! I will definitely use the app for a class assignment! And of course it also helps a lot as an inspiration.

Stefan S

iOS user

This app is really great. There are so many study notes and help [...]. My problem subject is French, for example, and the app has so many options for help. Thanks to this app, I have improved my French. I would recommend it to anyone.

Samantha Klich

Android user

Wow, I am really amazed. I just tried the app because I've seen it advertised many times and was absolutely stunned. This app is THE HELP you want for school and above all, it offers so many things, such as workouts and fact sheets, which have been VERY helpful to me personally.

Anna

iOS user

Best app on earth! no words because it’s too good

Thomas R

iOS user

Just amazing. Let's me revise 10x better, this app is a quick 10/10. I highly recommend it to anyone. I can watch and search for notes. I can save them in the subject folder. I can revise it any time when I come back. If you haven't tried this app, you're really missing out.

Basil

Android user

This app has made me feel so much more confident in my exam prep, not only through boosting my own self confidence through the features that allow you to connect with others and feel less alone, but also through the way the app itself is centred around making you feel better. It is easy to navigate, fun to use, and helpful to anyone struggling in absolutely any way.

David K

iOS user

The app's just great! All I have to do is enter the topic in the search bar and I get the response real fast. I don't have to watch 10 YouTube videos to understand something, so I'm saving my time. Highly recommended!

Sudenaz Ocak

Android user

In school I was really bad at maths but thanks to the app, I am doing better now. I am so grateful that you made the app.

Greenlight Bonnie

Android user

very reliable app to help and grow your ideas of Maths, English and other related topics in your works. please use this app if your struggling in areas, this app is key for that. wish I'd of done a review before. and it's also free so don't worry about that.

Rohan U

Android user

I know a lot of apps use fake accounts to boost their reviews but this app deserves it all. Originally I was getting 4 in my English exams and this time I got a grade 7. I didn’t even know about this app three days until the exam and it has helped A LOT. Please actually trust me and use it as I’m sure you too will see developments.

Xander S

iOS user

THE QUIZES AND FLASHCARDS ARE SO USEFUL AND I LOVE THE SCHOOLGPT. IT ALSO IS LITREALLY LIKE CHATGPT BUT SMARTER!! HELPED ME WITH MY MASCARA PROBLEMS TOO!! AS WELL AS MY REAL SUBJECTS ! DUHHH 😍😁😲🤑💗✨🎀😮

Elisha

iOS user

This apps acc the goat. I find revision so boring but this app makes it so easy to organize it all and then you can ask the freeeee ai to test yourself so good and you can easily upload your own stuff. highly recommend as someone taking mocks now

Paul T

iOS user

The app is very easy to use and well designed. I have found everything I was looking for so far and have been able to learn a lot from the presentations! I will definitely use the app for a class assignment! And of course it also helps a lot as an inspiration.

Stefan S

iOS user

This app is really great. There are so many study notes and help [...]. My problem subject is French, for example, and the app has so many options for help. Thanks to this app, I have improved my French. I would recommend it to anyone.

Samantha Klich

Android user

Wow, I am really amazed. I just tried the app because I've seen it advertised many times and was absolutely stunned. This app is THE HELP you want for school and above all, it offers so many things, such as workouts and fact sheets, which have been VERY helpful to me personally.

Anna

iOS user

Best app on earth! no words because it’s too good

Thomas R

iOS user

Just amazing. Let's me revise 10x better, this app is a quick 10/10. I highly recommend it to anyone. I can watch and search for notes. I can save them in the subject folder. I can revise it any time when I come back. If you haven't tried this app, you're really missing out.

Basil

Android user

This app has made me feel so much more confident in my exam prep, not only through boosting my own self confidence through the features that allow you to connect with others and feel less alone, but also through the way the app itself is centred around making you feel better. It is easy to navigate, fun to use, and helpful to anyone struggling in absolutely any way.

David K

iOS user

The app's just great! All I have to do is enter the topic in the search bar and I get the response real fast. I don't have to watch 10 YouTube videos to understand something, so I'm saving my time. Highly recommended!

Sudenaz Ocak

Android user

In school I was really bad at maths but thanks to the app, I am doing better now. I am so grateful that you made the app.

Greenlight Bonnie

Android user

very reliable app to help and grow your ideas of Maths, English and other related topics in your works. please use this app if your struggling in areas, this app is key for that. wish I'd of done a review before. and it's also free so don't worry about that.

Rohan U

Android user

I know a lot of apps use fake accounts to boost their reviews but this app deserves it all. Originally I was getting 4 in my English exams and this time I got a grade 7. I didn’t even know about this app three days until the exam and it has helped A LOT. Please actually trust me and use it as I’m sure you too will see developments.

Xander S

iOS user

THE QUIZES AND FLASHCARDS ARE SO USEFUL AND I LOVE THE SCHOOLGPT. IT ALSO IS LITREALLY LIKE CHATGPT BUT SMARTER!! HELPED ME WITH MY MASCARA PROBLEMS TOO!! AS WELL AS MY REAL SUBJECTS ! DUHHH 😍😁😲🤑💗✨🎀😮

Elisha

iOS user

This apps acc the goat. I find revision so boring but this app makes it so easy to organize it all and then you can ask the freeeee ai to test yourself so good and you can easily upload your own stuff. highly recommend as someone taking mocks now

Paul T

iOS user