
Groovy JDK 
Method Summary  

float

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. 
int

round()
Round the value 
float

round(int precision)
Round the value 
float

trunc(int precision)
Truncate the value 
float

trunc()
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 float abs()
public void downto(Number to, Closure closure)
to
 the end number.closure
 the code to execute for each number.public int round()
public float round(int precision)
precision
 the number of decimal places to keep.public float trunc(int precision)
precision
 the number of decimal places to keep.public float trunc()
public void upto(Number to, Closure closure)
to
 the end number.closure
 the code to execute for each number.

Groovy JDK 