how do you convert binary to a form in which you can perform subtraction?

You can use a common method involving 1's compliment, in which the binary number is inverted and then added, which overall gives subtraction. E.g. 8+3 =>> 810 = 10002 and 310 = 00112. 1's compliment would give -310 = 11002, as this inverts 3. this means that the 0s change to a 1 and the 1s change to a 3. you can now either add these binary numbers together and add 1 at the end, or use 2's compliment instead of 1's compliment, where a 1 is added to the inverted 3 now. so -310 becomes 11012. addition gives 1000
                                                                  1101
                                                                10101 the underlined 1 is discarded by the machine as the stored value is only a 4 bit value, which means the answer here is 5.

Answered by Thomas G. Computing tutor

1598 Views

See similar Computing GCSE tutors

Related Computing GCSE answers

All answers ▸

James would like to store a video clip that is 20 frames per second and has a duration of 76 seconds. The resolution of this video is 1280x720 with a colour depth of 24 bits. Calculate the storage requirement for the uncompressed video clip.


Describe the process used by a binary search algorithm, and explain why binary search would not be appropriate for the list [3,2,5,7,9]


Outline three differences between RAM and ROM


Calculate the file size in bits for a two minute sound recording that has used a sample rate of 1000 Hertz (Hz) and a sample resolution of 5 bits.


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

© MyTutorWeb Ltd 2013–2024

Terms & Conditions|Privacy Policy