1 / 9

Non decimal math: doing math with non-base 10 number systems

Non decimal math: doing math with non-base 10 number systems. Addition, subtraction and multiplication with binary, octal and hexadecimal. 1. Addition in binary: 4 cases. Case 2: sum = 1, no carry 0 + 1 1. Case 1: sum = 0, no carry 0 + 0

nmeyers
Download Presentation

Non decimal math: doing math with non-base 10 number systems

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Non decimal math: doing math with non-base 10 number systems Addition, subtraction and multiplication with binary, octal and hexadecimal

  2. 1 Addition in binary: 4 cases Case 2: sum = 1, no carry 0 + 1 1 • Case 1: sum = 0, no carry • 0 • + 0 • 0 Case 3: sum = 1, no carry 1 + 0 1 Case 4: sum 1, carry = 1 1 + 1 1 + 1 = 2 (in decimal) = 11 (in binary) 1 0

  3. Non-decimal addition: in general • If the sum of the two digits being added can be represented in the base, no problem, perform the addition as normal. • If the sum of the two digits being added are too large to be represented in the base then convert the numbers to a value in the base that you are working with before proceeding with the addition.

  4. Non-decimal addition: an example • e.g. 1308 • + 528 2028

  5. Non-decimal subtraction: in general • If you need to perform a borrow keep in mind that the amount that you borrow equals the base (e.g., in decimal when you perform a borrow it equals 10).

  6. Non-decimal subtraction: an example • e.g., 10002 • - 00012 01112

  7. Non-decimal multiplication: in general • If the product of the two digits being multiplied can be represented in the base, no problem, perform the multiplication as normal. • If the product of the two digits being multiplied are too large to be represented in the base then convert the numbers to a value in the base that you are working with before proceeding with the multiplication.

  8. Non-decimal multiplication: an example • e.g., 1F16 • * 1216 3E16 1F016 22E16

  9. Summary (important points) • How do perform basic mathematical operations (addition, subtraction and multiplication in different bases) • Binary • Octal • Hexadecimal

More Related