Open the App

Subjects

Computer ScienceComputer Science266 views·Updated 6 Sept 2026·3 pages

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

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

1
of 3
Binary fractions, twos complement and sign and magnitude  – page 1

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.

2
of 3
Binary fractions, twos complement and sign and magnitude  – page 2

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 (like -128 in an 8-bit system), making calculations more straightforward for processors.

3
of 3
Binary fractions, twos complement and sign and magnitude  – page 3

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...

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.

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

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

Similar content

Most popular content in Computer Science

9
Computer ScienceComputer Science

GCSE Computer Science Overview

Comprehensive study material for OCR GCSE Computer Science covering key topics such as computer architecture, network security, programming techniques, and ethical considerations. Ideal for exam preparation, this resource includes essential concepts, exam questions, and definitions to enhance understanding and retention.

117,939306
Computer ScienceComputer Science

Fundamentals of Computer Networking

Explore the essential concepts of computer networking, including types of networks (LAN, WAN, Internet), key components (nodes, links, protocols), and basic principles like IP and MAC addresses. This summary provides a comprehensive overview of network technologies and their significance in resource sharing, communication, and collaboration.

111544
Computer ScienceComputer Science

GCSE Computer Science Algorithms

Comprehensive overview of algorithms for AQA GCSE Computer Science Paper 1, covering key concepts such as sorting (Bubble Sort, Merge Sort), searching (Linear and Binary Search), and essential programming principles like data types, pseudocode, and flowcharts. Ideal for exam preparation and understanding algorithm efficiency.

1076856
Computer ScienceComputer Science

Sorting Algorithms Overview

Explore key sorting algorithms including Bubble, Insertion, and Merge sort. This summary covers their definitions, advantages, disadvantages, and practical examples to aid your GCSE Computer Science exam preparation.

103118
Computer ScienceComputer Science

GCSE Computer Science // Revision Notes

Concise revision notes for the GCSE OCR computer science specification (J277). Contains all the info needed for paper 1. Paper 2 is in my bio.

114816
Computer ScienceComputer Science

GCSE Computer Science Revision Notes

Concise revision notes for the GCSE OCR computer science specification (J277). Contains all the info needed for paper 2. Paper 1 is in my bio.

112812
Computer ScienceComputer Science

AQA GCSE Computer Science Overview

Comprehensive revision notes covering the AQA GCSE Computer Science curriculum, including key topics such as computer memory, cybersecurity, programming concepts, network protocols, and data representation. Ideal for exam preparation and understanding core concepts in computing.

115,385216
Computer ScienceComputer Science

A-Level Computer Science Paper 1 (Revision sheet)

(Apologies if some things look a bit off, converting the PowerPoint to PDF was a struggle as it wouldn’t let me include my custom drawings for diagrams)

121476
Computer ScienceComputer Science

Python Basics for Year 8

Master the fundamentals of Python programming with this comprehensive guide tailored for Year 8 students. Explore key concepts such as variables, loops, conditional statements, and arithmetic operators. This resource includes practical examples and interactive coding exercises to enhance your understanding and prepare you for assessments.

73089

Most popular content

9
SociologySociology

Sociology of Families: Comprehensive Revision

Dive into an extensive overview of family dynamics, perspectives, and patterns in sociology. This resource covers key concepts such as family diversity, gender roles, marriage, and the impact of social policies on family structures. Perfect for A-Level Sociology students preparing for Paper 2.

1274,1282,307
SociologySociology

Sociology of Education Overview

Explore comprehensive A-Level Sociology notes on the education system, covering key theories, policies, and sociological perspectives. This resource includes insights on marketisation, gender roles, cultural deprivation, and educational inequalities, providing a thorough understanding of how education shapes social stratification and individual achievement. Ideal for exam preparation and in-depth study.

12103,2693,045
BiologyBiology

A-Level Biology Year 1 Overview

Comprehensive summary of AQA A-Level Biology Year 1, covering key topics such as cellular structure, protein synthesis, immune response, gas exchange, and more. Ideal for exam preparation and understanding biological concepts. Includes detailed insights into cellular processes, biological classification, and the circulatory system.

1215,230704
BiologyBiology

AQA Biology: Key Concepts

Explore essential AQA Biology topics including Photosynthesis, Respiration, Homeostasis, Genetics, and Ecology. This comprehensive knowledge organizer covers key concepts such as energy transfer, hormonal control, and genetic variation, providing a solid foundation for your studies. Ideal for exam preparation and understanding biological processes.

109,228316
MathsMaths

Comprehensive Maths Concepts

Explore essential mathematical concepts including powers, geometry, statistics, and probability. This resource features 65 pages of detailed explanations, diagrams, and examples to enhance your understanding of topics such as right triangles, volume calculations, and data representation. Ideal for students seeking to strengthen their numeracy skills and grasp complex mathematical principles.

1180,3746,327
SociologySociology

Comprehensive Crime & Deviance Overview

Explore an extensive revision of crime and deviance topics, including theories, types of crime, and the impact of media. This resource covers key concepts such as Marxism, functionalism, gender and crime, and the influence of globalization on criminal behavior. Ideal for students seeking a thorough understanding of criminology and its various theories. Type: Full Topic Revision.

1251,8721,408
CriminologyCriminology

Criminal Justice Overview

Explore key concepts in criminal justice, including the trial process, roles of court personnel, types of offenses, and evidence handling. This comprehensive summary covers essential topics such as jury strengths and weaknesses, the role of the CPS, and the impact of media on trials. Ideal for students preparing for assessments in criminology. Achieved a B grade.

133,43172
BiologyBiology

Biology Paper 1 Overview

Comprehensive study notes covering key concepts in cellular biology, human digestion, respiration, photosynthesis, and the circulatory system. This resource includes detailed explanations of cell structures, enzyme functions, nutrient absorption, and the impact of environmental factors on biological processes. Ideal for students preparing for Biology Paper 1 exams.

1115,467391
English LiteratureEnglish Literature

An Inspector Calls: Character Insights

Explore in-depth analysis and key quotes for characters in J.B. Priestley's 'An Inspector Calls'. This resource covers Gerald Croft, Inspector Goole, Sheila Birling, Mrs. Birling, Eric Birling, and Eva Smith, focusing on themes of class, gender roles, and social responsibility. Ideal for students aiming for Grade 8 and above.

1125,726914

Students love us, and so will you.

4.6/5App Store
4.7/5Google 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 SiOS 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 KlichAndroid 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.

AnnaiOS user

Computer ScienceComputer Science266 views·Updated 6 Sept 2026·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.

1
of 3
Binary fractions, twos complement and sign and magnitude  – page 1

Sign up to see the content. It'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.

2
of 3
Binary fractions, twos complement and sign and magnitude  – page 2

Sign up to see the content. It'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 (like -128 in an 8-bit system), making calculations more straightforward for processors.

3
of 3
Binary fractions, twos complement and sign and magnitude  – page 3

Sign up to see the content. It'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...

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.

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

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

Similar content

Most popular content in Computer Science

9
Computer ScienceComputer Science

GCSE Computer Science Overview

Comprehensive study material for OCR GCSE Computer Science covering key topics such as computer architecture, network security, programming techniques, and ethical considerations. Ideal for exam preparation, this resource includes essential concepts, exam questions, and definitions to enhance understanding and retention.

117,939306
Computer ScienceComputer Science

Fundamentals of Computer Networking

Explore the essential concepts of computer networking, including types of networks (LAN, WAN, Internet), key components (nodes, links, protocols), and basic principles like IP and MAC addresses. This summary provides a comprehensive overview of network technologies and their significance in resource sharing, communication, and collaboration.

111544
Computer ScienceComputer Science

GCSE Computer Science Algorithms

Comprehensive overview of algorithms for AQA GCSE Computer Science Paper 1, covering key concepts such as sorting (Bubble Sort, Merge Sort), searching (Linear and Binary Search), and essential programming principles like data types, pseudocode, and flowcharts. Ideal for exam preparation and understanding algorithm efficiency.

1076856
Computer ScienceComputer Science

Sorting Algorithms Overview

Explore key sorting algorithms including Bubble, Insertion, and Merge sort. This summary covers their definitions, advantages, disadvantages, and practical examples to aid your GCSE Computer Science exam preparation.

103118
Computer ScienceComputer Science

GCSE Computer Science // Revision Notes

Concise revision notes for the GCSE OCR computer science specification (J277). Contains all the info needed for paper 1. Paper 2 is in my bio.

114816
Computer ScienceComputer Science

GCSE Computer Science Revision Notes

Concise revision notes for the GCSE OCR computer science specification (J277). Contains all the info needed for paper 2. Paper 1 is in my bio.

112812
Computer ScienceComputer Science

AQA GCSE Computer Science Overview

Comprehensive revision notes covering the AQA GCSE Computer Science curriculum, including key topics such as computer memory, cybersecurity, programming concepts, network protocols, and data representation. Ideal for exam preparation and understanding core concepts in computing.

115,385216
Computer ScienceComputer Science

A-Level Computer Science Paper 1 (Revision sheet)

(Apologies if some things look a bit off, converting the PowerPoint to PDF was a struggle as it wouldn’t let me include my custom drawings for diagrams)

121476
Computer ScienceComputer Science

Python Basics for Year 8

Master the fundamentals of Python programming with this comprehensive guide tailored for Year 8 students. Explore key concepts such as variables, loops, conditional statements, and arithmetic operators. This resource includes practical examples and interactive coding exercises to enhance your understanding and prepare you for assessments.

73089

Most popular content

9
SociologySociology

Sociology of Families: Comprehensive Revision

Dive into an extensive overview of family dynamics, perspectives, and patterns in sociology. This resource covers key concepts such as family diversity, gender roles, marriage, and the impact of social policies on family structures. Perfect for A-Level Sociology students preparing for Paper 2.

1274,1282,307
SociologySociology

Sociology of Education Overview

Explore comprehensive A-Level Sociology notes on the education system, covering key theories, policies, and sociological perspectives. This resource includes insights on marketisation, gender roles, cultural deprivation, and educational inequalities, providing a thorough understanding of how education shapes social stratification and individual achievement. Ideal for exam preparation and in-depth study.

12103,2693,045
BiologyBiology

A-Level Biology Year 1 Overview

Comprehensive summary of AQA A-Level Biology Year 1, covering key topics such as cellular structure, protein synthesis, immune response, gas exchange, and more. Ideal for exam preparation and understanding biological concepts. Includes detailed insights into cellular processes, biological classification, and the circulatory system.

1215,230704
BiologyBiology

AQA Biology: Key Concepts

Explore essential AQA Biology topics including Photosynthesis, Respiration, Homeostasis, Genetics, and Ecology. This comprehensive knowledge organizer covers key concepts such as energy transfer, hormonal control, and genetic variation, providing a solid foundation for your studies. Ideal for exam preparation and understanding biological processes.

109,228316
MathsMaths

Comprehensive Maths Concepts

Explore essential mathematical concepts including powers, geometry, statistics, and probability. This resource features 65 pages of detailed explanations, diagrams, and examples to enhance your understanding of topics such as right triangles, volume calculations, and data representation. Ideal for students seeking to strengthen their numeracy skills and grasp complex mathematical principles.

1180,3746,327
SociologySociology

Comprehensive Crime & Deviance Overview

Explore an extensive revision of crime and deviance topics, including theories, types of crime, and the impact of media. This resource covers key concepts such as Marxism, functionalism, gender and crime, and the influence of globalization on criminal behavior. Ideal for students seeking a thorough understanding of criminology and its various theories. Type: Full Topic Revision.

1251,8721,408
CriminologyCriminology

Criminal Justice Overview

Explore key concepts in criminal justice, including the trial process, roles of court personnel, types of offenses, and evidence handling. This comprehensive summary covers essential topics such as jury strengths and weaknesses, the role of the CPS, and the impact of media on trials. Ideal for students preparing for assessments in criminology. Achieved a B grade.

133,43172
BiologyBiology

Biology Paper 1 Overview

Comprehensive study notes covering key concepts in cellular biology, human digestion, respiration, photosynthesis, and the circulatory system. This resource includes detailed explanations of cell structures, enzyme functions, nutrient absorption, and the impact of environmental factors on biological processes. Ideal for students preparing for Biology Paper 1 exams.

1115,467391
English LiteratureEnglish Literature

An Inspector Calls: Character Insights

Explore in-depth analysis and key quotes for characters in J.B. Priestley's 'An Inspector Calls'. This resource covers Gerald Croft, Inspector Goole, Sheila Birling, Mrs. Birling, Eric Birling, and Eva Smith, focusing on themes of class, gender roles, and social responsibility. Ideal for students aiming for Grade 8 and above.

1125,726914

Students love us, and so will you.

4.6/5App Store
4.7/5Google 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 SiOS 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 KlichAndroid 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.

AnnaiOS user