![]() Previous |
![]() Next |
You can include any type of numeric data in the same numeric expression.
The data type of the result is determined according to the following rules:
When all the data in the expression is INTEGER or SHORTINTEGER, and the only operations are addition, subtraction, and multiplication, then the result is INTEGER.
When any of the data is NUMBER, then the result is NUMBER.
When any of the data is DECIMAL or SHORTDECIMAL, and no data is NUMBER, then the result is DECIMAL.
When you perform any division or exponentiation operations, then the result is DECIMAL.