Package | Description |
---|---|
com.google.gwt.user.client.rpc.core.java.math | |
java.math |
Modifier and Type | Method and Description |
---|---|
static MathContext |
MathContext_CustomFieldSerializer.instantiate(SerializationStreamReader streamReader) |
MathContext |
MathContext_CustomFieldSerializer.instantiateInstance(SerializationStreamReader streamReader) |
Modifier and Type | Method and Description |
---|---|
static void |
MathContext_CustomFieldSerializer.deserialize(SerializationStreamReader streamReader,
MathContext instance) |
void |
MathContext_CustomFieldSerializer.deserializeInstance(SerializationStreamReader streamReader,
MathContext instance) |
static void |
MathContext_CustomFieldSerializer.serialize(SerializationStreamWriter streamWriter,
MathContext instance) |
void |
MathContext_CustomFieldSerializer.serializeInstance(SerializationStreamWriter streamWriter,
MathContext instance) |
Modifier and Type | Field and Description |
---|---|
static MathContext |
MathContext.DECIMAL128
A
MathContext which corresponds to the IEEE 754r quadruple decimal
precision format: 34 digit precision and RoundingMode.HALF_EVEN
rounding. |
static MathContext |
MathContext.DECIMAL32
A
MathContext which corresponds to the IEEE 754r single decimal
precision format: 7 digit precision and RoundingMode.HALF_EVEN
rounding. |
static MathContext |
MathContext.DECIMAL64
A
MathContext which corresponds to the IEEE 754r double decimal
precision format: 16 digit precision and RoundingMode.HALF_EVEN
rounding. |
static MathContext |
MathContext.UNLIMITED
A
MathContext for unlimited precision with
RoundingMode.HALF_UP rounding. |
Modifier and Type | Method and Description |
---|---|
BigDecimal |
BigDecimal.abs(MathContext mc)
Returns a new
BigDecimal whose value is the absolute value of
this . |
BigDecimal |
BigDecimal.add(BigDecimal augend,
MathContext mc)
Returns a new
BigDecimal whose value is this + augend . |
BigDecimal |
BigDecimal.divide(BigDecimal divisor,
MathContext mc)
Returns a new
BigDecimal whose value is this / divisor . |
BigDecimal[] |
BigDecimal.divideAndRemainder(BigDecimal divisor,
MathContext mc)
Returns a
BigDecimal array which contains the integral part of
this / divisor at index 0 and the remainder this % divisor
at index 1. |
BigDecimal |
BigDecimal.divideToIntegralValue(BigDecimal divisor,
MathContext mc)
Returns a new
BigDecimal whose value is the integral part of
this / divisor . |
BigDecimal |
BigDecimal.multiply(BigDecimal multiplicand,
MathContext mc)
Returns a new
BigDecimal whose value is this * multiplicand
. |
BigDecimal |
BigDecimal.negate(MathContext mc)
Returns a new
BigDecimal whose value is the -this . |
BigDecimal |
BigDecimal.plus(MathContext mc)
Returns a new
BigDecimal whose value is +this . |
BigDecimal |
BigDecimal.pow(int n,
MathContext mc)
Returns a new
BigDecimal whose value is this ^ n . |
BigDecimal |
BigDecimal.remainder(BigDecimal divisor,
MathContext mc)
Returns a new
BigDecimal whose value is this % divisor . |
BigDecimal |
BigDecimal.round(MathContext mc)
Returns a new
BigDecimal whose value is this , rounded
according to the passed context mc . |
BigDecimal |
BigDecimal.subtract(BigDecimal subtrahend,
MathContext mc)
Returns a new
BigDecimal whose value is this - subtrahend . |
Constructor and Description |
---|
BigDecimal(BigInteger unscaledVal,
int scale,
MathContext mc)
Constructs a new
BigDecimal instance from a given unscaled value
unscaledVal and a given scale. |
BigDecimal(BigInteger val,
MathContext mc)
Constructs a new
BigDecimal instance from the given big integer
val . |
BigDecimal(char[] in,
int offset,
int len,
MathContext mc)
Constructs a new
BigDecimal instance from a string representation
given as a character array. |
BigDecimal(char[] in,
MathContext mc)
Constructs a new
BigDecimal instance from a string representation
given as a character array. |
BigDecimal(double val,
MathContext mc)
Constructs a new
BigDecimal instance from the given double val . |
BigDecimal(int val,
MathContext mc)
Constructs a new
BigDecimal instance from the given int val
. |
BigDecimal(long val,
MathContext mc)
Constructs a new
BigDecimal instance from the given long val . |
BigDecimal(String val,
MathContext mc)
Constructs a new
BigDecimal instance from a string representation. |
Copyright © 2018. All rights reserved.