- DECIMAL128 - Static variable in class java.math.MathContext
-
A
MathContext
object with a precision setting matching the IEEE 754R Decimal128 format, 34 digits, and a
rounding mode of
HALF_EVEN
, the IEEE 754R default.
- DECIMAL32 - Static variable in class java.math.MathContext
-
A
MathContext
object with a precision setting matching the IEEE 754R Decimal32 format, 7 digits, and a
rounding mode of
HALF_EVEN
, the IEEE 754R default.
- DECIMAL64 - Static variable in class java.math.MathContext
-
A
MathContext
object with a precision setting matching the IEEE 754R Decimal64 format, 16 digits, and a
rounding mode of
HALF_EVEN
, the IEEE 754R default.
- divide(BigDecimal, int, int) - Method in class java.math.BigDecimal
-
Returns a BigDecimal
whose value is (this /
divisor)
, and whose scale is as specified.
- divide(BigDecimal, int, RoundingMode) - Method in class java.math.BigDecimal
-
Returns a BigDecimal
whose value is (this /
divisor)
, and whose scale is as specified.
- divide(BigDecimal, int) - Method in class java.math.BigDecimal
-
Returns a BigDecimal
whose value is (this /
divisor)
, and whose scale is this.scale()
.
- divide(BigDecimal, RoundingMode) - Method in class java.math.BigDecimal
-
Returns a BigDecimal
whose value is (this /
divisor)
, and whose scale is this.scale()
.
- divide(BigDecimal) - Method in class java.math.BigDecimal
-
Returns a BigDecimal
whose value is (this /
divisor)
, and whose preferred scale is (this.scale() -
divisor.scale())
; if the exact quotient cannot be represented (because it has a non-terminating decimal
expansion) an ArithmeticException
is thrown.
- divide(BigDecimal, MathContext) - Method in class java.math.BigDecimal
-
Returns a BigDecimal
whose value is (this /
divisor)
, with rounding according to the context settings.
- divide(BigInteger) - Method in class java.math.BigInteger
-
Returns a BigInteger whose value is (this / val)
.
- divideAndRemainder(BigDecimal) - Method in class java.math.BigDecimal
-
Returns a two-element BigDecimal
array containing the result of divideToIntegralValue
followed by
the result of remainder
on the two operands.
- divideAndRemainder(BigDecimal, MathContext) - Method in class java.math.BigDecimal
-
Returns a two-element BigDecimal
array containing the result of divideToIntegralValue
followed by
the result of remainder
on the two operands calculated with rounding according to the context settings.
- divideAndRemainder(BigInteger) - Method in class java.math.BigInteger
-
Returns an array of two BigIntegers containing (this / val)
followed by (this % val)
.
- divideToIntegralValue(BigDecimal) - Method in class java.math.BigDecimal
-
Returns a BigDecimal
whose value is the integer part of the quotient (this / divisor)
rounded
down.
- divideToIntegralValue(BigDecimal, MathContext) - Method in class java.math.BigDecimal
-
Returns a BigDecimal
whose value is the integer part of (this / divisor)
.
- DoubleConsts - Class in sun.misc
-
This class contains additional constants documenting limits of the double
type.
- doubleValue() - Method in class java.math.BigDecimal
-
Converts this BigDecimal
to a double
.
- doubleValue() - Method in class java.math.BigInteger
-
Converts this BigInteger to a double
.