title: How to use Math.round on a big deciaml in groovy?
body: <p>I have a variable in my groovy script that collects a cost value. However the value comes out as 91.7776766667 and I want it to be rounded up so it is displayed as 91.8. How can I change the code below to do this and I am struggling to implement the Math.round feature:</p>
  
  <pre><code>def testcost = jsongroups.xxx.cost.flatten().collect { new Math.round(BigDecimal (it)) }
  
  log.info testcost
  </code></pre>