public static enum DfpField.RoundingMode extends Enum<DfpField.RoundingMode>
| Enum Constant and Description | 
|---|
| ROUND_CEILRounds towards positive infinity. | 
| ROUND_DOWNRounds toward zero (truncation). | 
| ROUND_FLOORRounds towards negative infinity. | 
| ROUND_HALF_DOWNRounds towards nearest unless both are equidistant in which case it rounds toward zero. | 
| ROUND_HALF_EVENRounds towards nearest unless both are equidistant in which case it rounds toward the even neighbor. | 
| ROUND_HALF_ODDRounds towards nearest unless both are equidistant in which case it rounds toward the odd neighbor. | 
| ROUND_HALF_UPRounds towards nearest unless both are equidistant in which case it rounds away from zero. | 
| ROUND_UPRounds away from zero if discarded digit is non-zero. | 
| Modifier and Type | Method and Description | 
|---|---|
| static DfpField.RoundingMode | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static DfpField.RoundingMode[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final DfpField.RoundingMode ROUND_DOWN
public static final DfpField.RoundingMode ROUND_UP
public static final DfpField.RoundingMode ROUND_HALF_UP
public static final DfpField.RoundingMode ROUND_HALF_DOWN
public static final DfpField.RoundingMode ROUND_HALF_EVEN
public static final DfpField.RoundingMode ROUND_HALF_ODD
public static final DfpField.RoundingMode ROUND_CEIL
public static final DfpField.RoundingMode ROUND_FLOOR
public static DfpField.RoundingMode[] values()
for (DfpField.RoundingMode c : DfpField.RoundingMode.values()) System.out.println(c);
public static DfpField.RoundingMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016–2020 Hipparchus.org. All rights reserved.