title: Roundup average value
body: <p>I want my average which is found in the MongoDB aggregation to come up with a roundup value</p>
  
  <pre><code> [
        {
          "_id": "581c3d9c55421c16ecaf0b26",
          "uDept": "CoE Design &amp; Research",
          "uName": "Saurabh Raman",
          "rateVal": 3,
          "timeStamp": "11/4/2016 13:17",
          "__v": 0
        },
        {
          "_id": "581c437ea3d9f6087ce3b21e",
          "uDept": "CoE Design &amp; Research",
          "uName": "Sachin P Singh",
          "rateVal": 4,
          "timeStamp": "11/4/2016 13:42",
          "__v": 0
        },
        {
          "_id": "581c6d74a3d9f6087ce3b21f",
          "uDept": "Training",
          "uName": "Rahul Shakya",
          "rateVal": 4,
          "timeStamp": "11/4/2016 16:35",
          "__v": 0
        }
      ]
  </code></pre>
  
  <p>The query which I run to obtain the average of "rateVal"</p>
  
  <pre><code>db.calcR.aggregate([
      {
              $group: {
                  _id: null,  
  
                  avg: {$avg: '$rateVal'},
  
              }
      }
  </code></pre>
  
  <p>The output is <code>{ avg: 3.6666 }</code> but ideally I want it to appear as 4</p>
  
  <pre><code>[
    {
      "_id": null,
      "avg": 3.6666666666666665,
  
    }
  ]
  </code></pre>