JavaScript is disabled on your browser.
JavaScript is disabled on your browser.
Uses of Class java.math.RoundingMode
Packages that use RoundingMode
Package
Description
java.math
Provides classes for performing arbitrary-precision integer
arithmetic (BigInteger
) and arbitrary-precision decimal
arithmetic (BigDecimal
).
java.text
Provides classes and interfaces for handling text, dates, numbers,
and messages in a manner independent of natural languages.
Methods in java.math with parameters of type RoundingMode
Modifier and Type
Method
Description
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
Constructor
Description
MathContext (int setPrecision,
RoundingMode setRoundingMode)
Constructs a new MathContext
with a specified
precision and rounding mode.
JavaScript is disabled on your browser.
Report a bug or suggest an enhancement For further API reference and developer documentation see the Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries. Copyright © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA. All rights reserved. Use is subject to license terms and the documentation redistribution policy .
Scripting on this page tracks web page traffic, but does not change the content in any way.