How to Groovy: Functions de Math

Groovy Math Functions!

class GroovyTut {
static void main(String[] args) {

 // Functions de Math
  def randNum = 5.0;

  println("Math.abs(-5.45) = " + (Math.abs(-5.45)));
  println("Math.round(5.45) = " + (Math.round(5.45)));
  println("randNum.pow(5) = " + (randNum.pow(5)));
  println("5.0.equals(2.0) = " + (5.0.equals(2.0)));
  println("randNum.equals(Float.NaN) = " + (randNum.equals(Float.NaN)));
  println("Math.sqrt(14) = " + (Math.sqrt(14)));
  println("Math.cbrt(15) = " + (Math.cbrt(15)));
  println("Math.ceil(5.45) = " + (Math.ceil(5.45)));
  println("Math.floor(5.45) = " + (Math.floor(5.45)));
  println("Math.min(8,9) = " + (Math.min(8,9)));
  println("Math.max(8,9) = " + (Math.max(8,9)));
    }
}