JavaTM 2 Platform
Standard Ed. 5.0

Uses of Class
java.math.RoundingMode

Packages that use RoundingMode
java.math Provides classes for performing arbitrary-precision integer arithmetic (BigInteger) and arbitrary-precision decimal arithmetic (BigDecimal). 
 

Uses of RoundingMode in java.math
 

Methods in java.math that return RoundingMode
 RoundingMode MathContext.getRoundingMode()
          Returns the roundingMode setting.
static RoundingMode RoundingMode.valueOf(int rm)
          Returns the RoundingMode object corresponding to a legacy integer rounding mode constant in BigDecimal.
static RoundingMode RoundingMode.valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RoundingMode[] RoundingMode.values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 

Methods in java.math with parameters of type RoundingMode
 BigDecimal BigDecimal.divide(BigDecimal divisor, int scale, RoundingMode roundingMode)
          Returns a BigDecimal whose value is (this / divisor), and whose scale is as specified.
 BigDecimal BigDecimal.divide(BigDecimal divisor, RoundingMode roundingMode)
          Returns a BigDecimal whose value is (this / divisor), and whose scale is this.scale().
 BigDecimal BigDecimal.setScale(int newScale, RoundingMode roundingMode)
          Returns a BigDecimal whose scale is the specified value, and whose unscaled value is determined by multiplying or dividing this BigDecimal's unscaled value by the appropriate power of ten to maintain its overall value.
 

Constructors in java.math with parameters of type RoundingMode
MathContext(int setPrecision, RoundingMode setRoundingMode)
          Constructs a new MathContext with a specified precision and rounding mode.
 


JavaTM 2 Platform
Standard Ed. 5.0

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.