You can use the following basic arithmetic operations in dependencies to perform calculations:
+ Addition
- Subtraction
/ Division
* Multiplication
Example:
CHAR_WIDTH = CHAR_LENGTH / 4
sin | Sine |
cos | Cosine |
tan | Tangent |
exp | Exponent for base e |
In | Natural logarithm |
abs | Absolute value |
sqrt | Square root |
log10 | Logarithm for base 10 |
arcsin | Arcsine (inverse function of sine) |
arccos | Arccosine (inverse function of cosine) |
arctan | Arctangent (inverse function of tangent) |
sign | Sign (plus or minus sign) of x |
frac | Decimal part of x |
Example:
SIN (2*3.14 * ANGLE /360)
In functions, no distinction is made between uppercase and lowercase. Function names are automatically converted to uppercase letters.
You can use the following commands to round a value that was calculated using dependencies:
Function | Description | X = 3.1 | X = -3.1 |
---|---|---|---|
CEIL | Lowest integer that is not less than x. | +4 | -3 |
TRUNC | Part of x that is an integer. | +3 | -3 |
FLOOR | Greatest integer that is not greater than x. | +3 | -4 |
ROUND | In the case of positive numbers: FLOOR, if the decimal value is less than five; CEIL, if the decimal value is greater than or equal to five In the case of negative numbers: CEIL, if the decimal value is less than five; FLOOR, if the decimal value is greater than or equal to five | +3 | -3 |