This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:arithmeticoperators [2016/08/09 18:03] admin created |
en:arithmeticoperators [2020/04/21 21:17] admin |
||
---|---|---|---|
Line 5: | Line 5: | ||
^Arithmetic Operators^^^^ | ^Arithmetic Operators^^^^ | ||
^Operator^Name^Example^Comments^ | ^Operator^Name^Example^Comments^ | ||
- | |+|Addition|a + b|add two numeric values. | + | |+|Addition|a + b|Add two numeric values. |
- | |-|Subtraction|a - b|subtract | + | |-|Subtraction|a - b|Subtract |
- | |*|Multiplication|a * b| | | + | |*|Multiplication|a * b|Multiply the two numbers. |
- | |/ | + | |/ |
|\|Integer Division|a \ b|Returns the number of whole times that b goes into a.| | |\|Integer Division|a \ b|Returns the number of whole times that b goes into a.| | ||
|%|Modulo|a % b|Returns the remainder of the integer division of a and b.| | |%|Modulo|a % b|Returns the remainder of the integer division of a and b.| | ||
- | |%%++%%|Increment Prefix|%%++a%%|Increment (add one) the the variable and return the value after the increment. (may be applied ONLY to numeric variables or array elements) | + | |mod| ::: |a mod b| ::: | |
- | |%%++%%|Increment Suffix|%%a++%%|Return the value of the variable and then increment the variable by one for the next time it is accessed. (may be applied ONLY to numeric variables or array elements) < | + | |
- | |--|Decrement Prefix|--a|Decrement (subtract one) the the variable and return the value after the decrement. (may be applied ONLY to numeric variables or array elements) < | + | ==== History ==== |
- | |--|Decrrement Suffix|a--|Return the value of the variable and then decrement the variable by one for the next time it is accessed. (may be applied ONLY to numeric variables or array elements) < | + | |2.0.0.0|Added ' |
- | \\ | + |