Computer Science, asked by divyanshusood4, 1 month ago

please tell it fast don't spam I will report ​

Attachments:

Answers

Answered by popeislie
0
Addition: When two numbers are added together in denary , we take the first number, add the second number to it and get an answer. For example, 1 + 2 = 3. When we add two binary numbers together the process is different.
Subtraction: This operation is similar to the basic arithmetic subtraction performed on decimal numbers in Maths. Hence, when we subtract 1 from 0, we need to borrow 1 from the next higher order digit, to reduce the digit by 1 and the remainder left here is also 1.

Multiplication: For binary multiplication, we follow the same process as multiplying two decimal numbers where we multiply each digit of the second number by the first whole number, then we just need to add them, switching each resulting multiplication one digit to the left.
Convert decimal to binary:

1: Divide the number by 2.
2:Get the integer quotient for the next iteration.
3: Get the remainder for the binary digit.
4: Repeat the steps until the quotient is equal to 0.
Convert binary to decimal:

Formula to Convert Binary to Decimal
If individual binary digits are written as dn where n is the position of the digit from the right end and n is a whole number starting from 0. Then, the binary to decimal formula is given as, d0×20+d1×21+d2×22+d3×23
Similar questions