Database Management
Reference Manual
Expressions
:
Numeric (Real) Expressions
: MULTIPLY and DIVIDE (* and /)
MULTIPLY and DIVIDE (* and /)
The multiply and divide functions available are
Synopsis
number * number
-> number
number / number
-> number
Description
Multiply or divide two numbers. They can also be used as unary operators at the beginning of a parenthesised sub-expression. Numeric underflow is not considered to be an error and neither is it flagged as a warning. The result returned is zero.
Side Effects
Units are consolidated across Multiply and Divide. The result is returned in the current units of the physical quantity of the result for example when current units of pressure are psi then:
q (20kgf/ 1 cm2 ) will return 284.47PSI
If one value has no unit it is assumed to be a scaling factor. This also applies to reciprocal physical quantities. For example:
for
(10 / XLEN)
will return 2mm-1 when XLEN is 5mm
Example
2 * 3 -> 6.0
2 / 3 -> 0.666666666
Errors
Divide by zero.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.