Add the binary numbers 100101 and 101001 and convert them to decimal (they are unsigned integers). What are possible issues when adding the numbers?

The result is 1001110, which converted is 78. The problem that can occur is overflow, since original number is 6 digit, but result is 7, which may cause to drop the most significant bit and become 14 instead.

The result can be arrived by adding all the numbers together from the right side towards left and carrying over if both of them are 1. Conversion is done from right to left by adding all the numbers starting by 1 multiplying by 2 for every digit count and multiplying by the value itself, so 10+121+ 1221+....

ES
Answered by Egidijus S. Computing tutor

3402 Views

See similar Computing IB tutors

Related Computing IB answers

All answers ▸

Question 14)http://ibdocuments.com/IB%20PAST%20PAPERS%20-%20SUBJECT/Group%204%20-%20The%20sciences/Computer_science_SL/2007%20November%20Examination%20Session/English%20Papers/Computer_science_paper_1_SL.pdf


The program I've written doesn't do what its supposed to! I don't have any errors, so I don't even know where to start looking for the problem. Where can I begin?


Define the terms CU and ALU and briefly explain their roles in the CPU.


Define how recursion works


We're here to help

contact us iconContact ustelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

© MyTutorWeb Ltd 2013–2025

Terms & Conditions|Privacy Policy
Cookie Preferences