Divide can be used in both variable and constant expressions. When used with variable expressions or integer constant expressions, it divides one value by another and returns the 32-bit integer result. When used with floating-point constant expressions, it divides one value by another and returns the 32-bit single-precision floating-point result. Example:
Code Block |
---|
X := Y / 4 |
Divide has an assignment form, /=, that uses the variable to its left as both the first operand and the result destination. For example,
...