The ExpressionSubtract does subtract operation on two long long data type. This can cause an overflow with large numbers. The right way to do this is to use the DoubleDoubleSummation helper that we use while adding number in ExpressionSum.
- is documented by
-
DOCS-14006 Investigate changes in SERVER-50445: Return the value as double when NumberLong subtraction overflows in ExpressionSubtract
- Closed