...
To use a number constant, just use the number itself, for example 12000
or 42.86
.
...
Text
You will need this for certain functions. Strings Texts cannot be used to calculate something. To make a stringtext, use single quotes ‘
, for example ‘this is a string’text’
or 'causes’
.
Fields
You can use any custom field of type number, or text fields that contain a number. JSU converts texts that only consist of a number to a number type.
...
Operator | Description | Example |
---|---|---|
| Addition: Adds the two values. |
|
| Subtraction: Subtracts the second value from the first. |
|
| Multiplication: Multiplies the two values. |
|
| Division: Divides the first by the second value. |
|
| Potentiation: Raises the first value to the power of the second. |
|
| Percentage: As on a calculator, you can add or subtract a percentage to/from a value. |
|
...
Parentheses
Parentheses can be used to group operations to override operator precedence. 2 * 3 + 3
equals 9, but 2 * (3 + 3)
equals 12.
...