@FunctionalInterface
public interface RoundingMode
Modifier and Type | Field and Description |
---|---|
static RoundingMode |
DOWN
Rounds a fractional value up to the nearest integer greater than or equal to the given value.
|
static RoundingMode |
NEAREST
Rounds a fractional value to the nearest integer.
|
static RoundingMode |
UP
Rounds a fractional value down to the nearest integer less than or equal to the given value.
|
Modifier and Type | Method and Description |
---|---|
int |
round(double value)
Rounds a fractional value to an integer.
|
static final RoundingMode NEAREST
static final RoundingMode UP
static final RoundingMode DOWN