NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

12.4.2 Division operator

The division operator computes the quotient of two operands. There are two division operators: the regular division operator and the integer division operator.

The regular division operator is defined for:

According to normal numeric promotion rules, regular division purely between operands of types Byte, Short, Integer and Long would be illegal. However, in this specific situation, those types are treated specially and both operands are promoted to Double. The promotion happens to Double instead of Decimal because Double division is more performant than Decimal division on the NGWS Frameworks and Runtime.

DivisionOperatorExpression ::= RegularDivisionOperatorExpression | IntegerDivisionOperatorExpression
RegularDivisionOperatorExpression ::= Expression / Expression
IntegerDivisionOperatorExpression ::= Expression \ Expression