July 2018
Beginner
552 pages
13h 18m
English
Arithmetic operators are used for calculations with numeric values. In some cases, they can also be used with strings, arrays, and hash tables:
|
Operator |
Meaning |
Description |
|
+
|
Add
|
Adds numeric object. Concetenates strings, arrays, and hash tables. |
|
-
|
Subtract and negate
|
Subtracts numeric values. Negates numbers. |
|
*
|
Multiply
|
Multiplies numeric values. Multiplies strings and arrays the specified number of times. |
|
/
|
Divide
|
Divides numeric objects with the specified rounding. |
|
%
|
Modulo
|
Returns the remainder of a division. |
|
-shl
|
Shift-left
|
Moves all bits n places to the left. |
|
-shr
|
Shift-right
|
Moves all bits n places to the right. |
|
()
|
Parentheses
|
Mathematical ... |
Read now
Unlock full access