Common Keys
The Common Keys section covers the operators and symbols that are used most commonly in math expressions.
Button |
Syntax |
Definition |
---|---|---|
|
DUMMY |
At the cursor the constant DUMMY is added to the Expression. This constant is translated to the appropriate data type by the math engine. |
|
/ |
Division |
|
* |
Multiplication |
|
- |
Subtraction |
|
+ |
Addition |
|
( |
Open Parentheses |
|
% |
Modulus (Remainder) of a division. For example: 11%3 = 2 (11/3 = 9 with remainder of 2) 12%4 = 0 (12/4 = 3 with remainder of 0) |
|
sqrt(x) |
Square Root |
|
** |
Exponent |
|
) |
Closed Parentheses |
|
e |
Natural logarithm |
|
|
The constant 3.14159265358979 |
|
= |
Equality |
|
@Var# |
Temporary Variable Names. These variables are using at run time and are not saved in the database. |
Application Notes
Rules for Using Dummy (Placeholder) Values
Dummy (or placeholder) values are treated differently by some operators than by others.
The logical operators (!,>, <, >=, <=, ==, !=, &&, ||) do not check the value to see if it is a dummy and will function as if it were a number or TRUE.
The mathematical operators (+, -, *, /, **, % etc.) will check for dummy values and will ALWAYS return a dummy if any dummies are used in the calculation.
Got a question? Visit the Seequent forums or Seequent support
© 2024 Seequent, The Bentley Subsurface Company
Privacy | Terms of Use