Arithmetic

You can combine character strings that are valid numbers (see Tokens) using the arithmetic operators:
+
Add
-
Subtract
*
Multiply
/
Divide
%
Integer divide (divide and return the integer part of the result)
//
Remainder (divide and return the remainder—not modulo, because the result may be negative)
**
Power (raise a number to a whole-number power)
Prefix -
Same as the subtraction: 0 - number
Prefix +
Same as the addition: 0 + number.
See Numbers and Arithmetic for details about precision, the format of valid numbers, and the operation rules for arithmetic. Note that if an arithmetic result is shown in exponential notation, it is likely that rounding has occurred.


dfhrxbv.html | Timestamp icon Last updated: Monday, 5 June 2017