Math Operators

Types of Operations

Addition +

intNumber = num1 +num2

Subtraction -

intNumber = num1 - 50

Multiplication *

intNumber = num1 * num2

Division /

intNumber = 51/num2

Integer Division \

intNumber = 51\num2

Modulus Mod

intNumber = 5 mod 2

exponets ^

intNumber = 5^3


Big image

Regualr Division- You're dividing normally

Integer Division- You're only finding the whole number

Modular Division- You're only finding the remainder


Orders of Operations


Parentheseis

Exponets

Multiplication

Division
Addition
Subtraction


Big image