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

Add aggregation expressions for $floor, $ceil, and $trunc

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.7
    • Component/s: Aggregation Framework
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Quint Iteration 7

      Description

      $floor, $ceil, and $trunc each take one numeric input and return a rounded number of the same type.

      $trunc rounds towards 0, $floor rounds towards negative infinity, and $ceil rounds towards positive infinity.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: