Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.

For information on migrating to InterSystems IRIS, see Why Migrate to InterSystems IRIS?

Integer Division Operator (\)

Used to divide two numbers and return an integer result.


result = number1 \ number2


The \ operator syntax has these parts:

result Any numeric variable.
number1 Any numeric expression.
number2 Any numeric expression.


Before division is performed, numeric expressions are rounded to Byte, Integer, or Long subtype expressions.

Any expression that is Empty is treated as 0.

See Also