
Groovy JDK 
Method Summary  

double

abs()
Get the absolute value 
void

downto(Number to, Closure closure)
Iterates from this number down to the given number, inclusive, decrementing by one each time. 
long

round()
Round the value 
double

round(int precision)
Round the value 
double

trunc()
Truncate the value 
double

trunc(int precision)
Truncate the value 
void

upto(Number to, Closure closure)
Iterates from this number up to the given number, inclusive, incrementing by one each time. 
Method Detail 

public double abs()
public void downto(Number to, Closure closure)
to
 the end number.closure
 the code to execute for each number.public long round()
public double round(int precision)
precision
 the number of decimal places to keep.public double trunc()
public double trunc(int precision)
precision
 the number of decimal places to keep.public void upto(Number to, Closure closure)
to
 the end number.closure
 the code to execute for each number.

Groovy JDK 