Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-50445

Return the value as double when NumberLong subtraction overflows in ExpressionSubtract

    • 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

      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@mongodb.com Arun Banala
            Reporter:
            arun.banala@mongodb.com Arun Banala
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: