Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Previous sectionNext section

Integer Division Operator (\)

Used to divide two numbers and return an integer result.

Synopsis

result = number1 \ number2

Arguments

The \ operator syntax has these parts:

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

Description

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