Listed in order of precedence:

Token | Name | Description |
---|---|---|

`^` | Exponentiation | Return the result of raising the left-hand operand to the power of the right-hand operand. Note that the value returned by exponentiation is always a `Double` , regardless of the value types being divided. Any coercion of the result into a variable type takes place the calculation is performed.after |

`/` | Division^{1} | Returns the result of dividing the left-hand operand by the right-hand operand. Note that the value returned by division is always a `Double` , regardless of the value types being divided. Any coercion of the result into a variable type takes place the calculation is performed.after |

`*` | Multiplication^{1} | Returns the product of 2 operands. |

`\` | Integer Division | Returns the integer result of dividing the left-hand operand by the right-hand operand rounding both sides with .5 rounding down. Any remainder of the division is ignored. If the right-hand operand (the divisor) is after`0` , a Run-time error 11: Division by zero will result. Note that this is all rounding is performed - expressions such as after`3 \ 0.4` will also result in a division by zero error. |

`Mod` | Modulo | Returns the integer remainder of dividing the left-hand operand by the right-hand operand. The operand on each side is rounded to an integer before the division, with .5 rounding down. For example, both `8.6 Mod 3` and `12 Mod 2.6` result in `0` . If the right-hand operand (the divisor) is `0` , a Run-time error 11: Division by zero will result. Note that this is all rounding is performed - expressions such as after`3 Mod 0.4` will also result in a division by zero error. |

`-` | Subtraction^{2} | Returns the result of subtracting the right-hand operand from the left-hand operand. |

`+` | Addition^{2} | Returns the sum of 2 operands. Note that this token also treated as a concatenation operator when it is applied to a `String` . See Concatenation Operators. |

^{1} Multiplication and division are treated as having the same precedence.

^{2} Addition and subtraction are treated as having the same precedence.

This modified text is an extract of the original Stack Overflow Documentation created by following contributors and released under CC BY-SA 3.0

This website is not affiliated with Stack Overflow