Mathematical Operators |
Top Previous Next |
Mathematical operators are used with variables of type Float or Integer. Please note that you can use the "+" operator with a String type to join two or more Strings.
Operation Type Operator Variable Type Adding + Integer, Float, String Subtraction - Integer, Float Multiply * Integer, Float Divide / Float Integer Division div Integer Modulus mod Integer
The Div operator is used with integer variable types and returns a integer quotient. The fractional remainder, if any, is dropped. The Mod operator is used with integer variable types and returns an integer remainder. The quotient, if any, is dropped.
|