Return type | Name and parameters |
---|---|
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. |
Get the absolute value
Iterates from this number down to the given number, inclusive, decrementing by one each time.
to
- the end number.closure
- the code to execute for each number.Round the value
Round the value
precision
- the number of decimal places to keep.Truncate the value
Truncate the value
precision
- the number of decimal places to keep.