
Build 1.0_r1(from source)  
PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  ENUM CONSTANTS  FIELD  METHOD  DETAIL: ENUM CONSTANTS  FIELD  METHOD 
java.lang.Object java.lang.Enum<RoundingMode> java.math.RoundingMode
public enum RoundingMode
An enum to specify the rounding behaviour for operations whose results cannot be represented exactly.
Enum Constant Summary  

CEILING
Rounding mode to round towards positive infinity. 

DOWN
Rounding mode where the values are rounded towards zero. 

FLOOR
Rounding mode to round towards negative infinity. 

HALF_DOWN
Rounding mode where values are rounded towards the nearest neighbour. 

HALF_EVEN
Rounding mode where values are rounded towards the nearest neighbour. 

HALF_UP
Rounding mode where values are rounded towards the nearest neighbour. 

UNNECESSARY
Rounding mode where the rounding operations throws an ArithmeticException for the case that rounding is necessary, i.e. 

UP
Rounding mode where positive values are rounded towards positive infinity and negative values towards negative infinity. 
Method Summary  

static RoundingMode 
valueOf(int rM)
Converts rounding mode constants from class BigDecimal into RoundingMode values. 
static RoundingMode 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
static RoundingMode[] 
values()
Returns an array containing the constants of this enum type, in the order they are declared. 
Methods inherited from class java.lang.Enum 

clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf 
Methods inherited from class java.lang.Object 

finalize, getClass, notify, notifyAll, wait, wait, wait 
Enum Constant Detail 

public static final RoundingMode UP
public static final RoundingMode DOWN
public static final RoundingMode CEILING
public static final RoundingMode FLOOR
public static final RoundingMode HALF_UP
public static final RoundingMode HALF_DOWN
public static final RoundingMode HALF_EVEN
public static final RoundingMode UNNECESSARY
Method Detail 

public static RoundingMode[] values()
for (RoundingMode c : RoundingMode.values()) System.out.println(c);
public static 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 name
NullPointerException
 if the argument is nullpublic static RoundingMode valueOf(int rM)
rM
 rounding mode constant as defined in class BigDecimal

Build 1.0_r1(from source)  
PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  ENUM CONSTANTS  FIELD  METHOD  DETAIL: ENUM CONSTANTS  FIELD  METHOD 