1 / 6

Special Division Operators

Special Division Operators. What Operators Do We Know?. +. Adding Subtracting Multiplying Dividing Power (or Exponent). -. *. /. ^. What Operators Are We Learning About Today?. which means Integer Division mod which means Modulus (or remainder )

Download Presentation

Special Division Operators

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. Special Division Operators

  2. What Operators Do We Know? + • Adding • Subtracting • Multiplying • Dividing • Power (or Exponent) - * / ^

  3. What Operators Are We Learning About Today? • \ which means Integer Division • mod which means Modulus (or remainder) Integer Divisiontruncates the decimal portion of the quotient. 13 \ 5 = Modulus Division returns the remainder resulting from the division. 13 mod 5 =

  4. Integer Division Examples: 3 23 \ 7 = 9 \ 4 = 20 \ 3 = 64 \ 5 = 57 \ 11 = 46 \ 2 = 38 \ 9 = 2 6 12 5 23 4

  5. Mod Examples 1 • 17 mod 2 = • 27 mod 2 = • 47 mod 8 = • 45 mod 3 = • 46 mod 6 = • 77 mod 11 = • 53 mod 4 = • What can “mod” tell you about? 1 7 0 4 0 1

  6. Program Assignment: Skyhook Application page 4-10 Review 6

More Related