Use the division operator or quotient function to divide expression functions and
The division operator (/)
method divides all numbers as doubles and
results in a double quotient, regardless of the data type of the dividend or
If the dividend, divisor, and result are all of type I32, the
division operator performs an integer division and returns a result of data type
The quotient function method rounds the result of the division towards
Depending on your goal, use a division method with your expression function or
|Perform an integer division and want the result as a
||Division Operator (/)
|Perform an integer division and want the result as an
integer rounded towards minus infinity
|Divide U64 integers
The result of the function (operator) is either the data
type of the dividend or the divisor. This is determined by the largest data type,
according to this order: Double > U64 > I64 > U32 > I32.
If the result is passed to
another data type, VeriStand performs an implicit cast. An implicit cast converts
one data type to another. For example, if a double is converted to an integer, the
resulting number is rounded toward zero. This may lead to unexpected values.
The following table shows the results of different functions in the case of
division by zero.
||Integer (I32, I64, U32, U64)
||The sequence is aborted with error -8