Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-13855

Investigate changes in SERVER-32960: $mod has inconsistent rounding/truncation behavior

    XMLWordPrintableJSON

Details

    Description

      Description

      Downstream Change Summary

      $mod now truncates it's decimal arguments (not input) towards zero. Before this change $mod truncated them to the nearest integer

      Description of Linked Ticket

      See DOCS-7792 - $mod will truncate a double (e.g. 2.7 -> 2), but will round decimals, ties to even (e.g. 3.5 -> 4).

      We should be consistent here, probably truncating decimals as well as doubles.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Activity

          People

            ian.fogelman@mongodb.com Ian Fogelman
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              3 years, 23 weeks, 5 days ago