Return the value as double when NumberLong subtraction overflows in ExpressionSubtract

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • v4.4, v4.2, v4.0, v3.6
    • Query 2020-10-05, Query 2020-10-19, Query 2020-11-02, Query 2020-11-16
    • 14
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Arun Banala
              Reporter:
              Arun Banala
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: