Uses of Class
java.math.RoundingMode
| Package | Description |
|---|---|
| java.math | |
| java.text | |
| libcore.icu |
-
Uses of RoundingMode in java.math
Methods in java.math that return RoundingMode Modifier and Type Method Description RoundingModeMathContext. getRoundingMode()Returns the rounding mode.static RoundingModeRoundingMode. valueOf(int mode)Converts rounding mode constants from classBigDecimalintoRoundingModevalues.static RoundingModeRoundingMode. 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 are declared.Methods in java.math with parameters of type RoundingMode Modifier and Type Method Description BigDecimalBigDecimal. divide(BigDecimal divisor, int scale, RoundingMode roundingMode)Returns a newBigDecimalwhose value isthis / divisor.BigDecimalBigDecimal. divide(BigDecimal divisor, RoundingMode roundingMode)Returns a newBigDecimalwhose value isthis / divisor.BigDecimalBigDecimal. setScale(int newScale, RoundingMode roundingMode)Returns a newBigDecimalinstance with the specified scale.Constructors in java.math with parameters of type RoundingMode Constructor Description MathContext(int precision, RoundingMode roundingMode)Constructs a newMathContextwith the specified precision and with the specified rounding mode. -
Uses of RoundingMode in java.text
Methods in java.text that return RoundingMode Modifier and Type Method Description RoundingModeDecimalFormat. getRoundingMode()Returns theRoundingModeused by thisNumberFormat.RoundingModeNumberFormat. getRoundingMode()Returns theRoundingModeused by thisNumberFormat.Methods in java.text with parameters of type RoundingMode Modifier and Type Method Description voidDecimalFormat. setRoundingMode(RoundingMode roundingMode)Sets theRoundingModeused by thisNumberFormat.voidNumberFormat. setRoundingMode(RoundingMode roundingMode)Sets theRoundingModeused by thisNumberFormat. -
Uses of RoundingMode in libcore.icu
Methods in libcore.icu with parameters of type RoundingMode Modifier and Type Method Description voidNativeDecimalFormat. setRoundingMode(RoundingMode roundingMode, double roundingIncrement)