Symbols and formulas you can use in posts
In the parameters and formulas of your posts you can use the symbols, references and mathematical formulas below.
Symbol | Explanation |
|---|---|
+ | Adding 2 values. |
- | Subtracting 2 values. |
***** | Multiplying 2 values. |
/ | Dividing 2 values. |
% | Modulus. |
== | Is equal to. |
!= | Is not equal to. |
> | Is greater than. |
< | Is less than. |
>= | Is greater than or equal to. |
<= | Is less than or equal to. |
&& | and |
! | not |
? : | Condition: condition ? value if true : value if false, for example |
Reference | Explanation | Example |
|---|---|---|
Q | Reference to the quantity that you fill in for this post in the quotation | Q < 50 ? 1 : 0 |
DISTANCE_KM | Reference to the 'kilometers' field on the quotation | DISTANCE_KM > 50 ? 1 : 0 |
Mathematical formula | Explanation | Example |
|---|---|---|
Math.round( x ) | Rounding a number to the higher or the lower integer. | Math.round(16,14). -> value = 16 |
Math.floor( x ) | A number with decimal places is rounded down to the lowest integer. | Math.floor(7,35) -> value = 7 |
Math.ceil( x ) | A number with decimal places is rounded up to the highest integer. | Math.ceil(7,35) -> value = 8 |
Math.max(x;y;x) | The highest value in the series is shown. | Math.max(2;6;10;3;1;9) -> value = 10 |
Math.min(x;y;x) | The lowest value in the series is shown. | Math.min(2;6;10;3;1;9) -> value = 1 |
Math.PI | Pi. | Math.PI*2 -> value = 6,28 (pi *2) |
Math.pow(x;y) | Exponentiation. | Math.pow(2;5). -> value = 32 (2 to the power of 5). |
Math.sqrt( x ) | Square root. | Math.sqrt(16) -> value = 4 (square root of 16). |
Math.abs( x ) | Absolute value (= positive value) | Math.abs(-3) -> value = 3 |
Math.sinh( x ) | Hyperbolic sine. | |
Math.cos( x ) | Cosine. | |
Math.tan( x ) | Tangent. | |
Math.log( x ) | Natural logarithm (ln). |
What should you keep in mind?
- Or: type
||, two vertical bars with no space in between. Two capital letters i (II) give an error. - Decimal numbers and separators: write a decimal number with a comma, for example
2,4. Do not use a point as a thousands separator:1.000is 1 for Robaws, not a thousand. - Exponentiation: use
Math.pow(x;y). The^sign does not work as a power in posts:2^3gives 1 instead of 8. - Semicolon between values: separate the values in a function with a semicolon, for example
Math.max(2;6).
Updated on: 18/11/2026
Thank you!
