| Modifier and Type | Method and Description |
|---|---|
ERounding |
EContext.getRounding()
Gets the desired rounding mode when converting numbers that can't be
represented in the given precision and exponent range.
|
static ERounding |
ERounding.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ERounding[] |
ERounding.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
EDecimal |
EDecimal.DivideToExponent(EDecimal divisor,
EInteger desiredExponent,
ERounding rounding)
Divides two arbitrary-precision decimal numbers, and gives a particular
exponent to the result.
|
EDecimal |
EDecimal.DivideToExponent(EDecimal divisor,
int desiredExponentInt,
ERounding rounding)
Divides two arbitrary-precision decimal numbers, and gives a particular
exponent (expressed as a 32-bit signed integer) to the result, using
the half-even rounding mode.
|
EDecimal |
EDecimal.DivideToExponent(EDecimal divisor,
long desiredExponentSmall,
ERounding rounding)
Divides two arbitrary-precision decimal numbers, and gives a particular
exponent to the result.
|
EFloat |
EFloat.DivideToExponent(EFloat divisor,
EInteger desiredExponent,
ERounding rounding)
Divides two arbitrary-precision binary floats, and gives a particular
exponent to the result.
|
EFloat |
EFloat.DivideToExponent(EFloat divisor,
long desiredExponentSmall,
ERounding rounding)
Divides two arbitrary-precision binary floats, and gives a particular
exponent to the result.
|
EDecimal |
EDecimal.DivideToSameExponent(EDecimal divisor,
ERounding rounding)
Divides this object by another decimal number and returns a result with the
same exponent as this object (the dividend).
|
EFloat |
EFloat.DivideToSameExponent(EFloat divisor,
ERounding rounding)
Divides this object by another binary float and returns a result with the
same exponent as this object (the dividend).
|
static EContext |
EContext.ForPrecisionAndRounding(int precision,
ERounding rounding)
Creates a new EContext object initialized with an unlimited exponent range,
and the given rounding mode and maximum precision.
|
static EContext |
EContext.ForRounding(ERounding rounding)
Creates a new EContext object initialized with an unlimited precision, an
unlimited exponent range, and the given rounding mode.
|
EDecimal |
EDecimal.Quantize(int desiredExponentInt,
ERounding rounding)
Returns a decimal number with the same value as this one but a new exponent.
|
EDecimal |
EDecimal.RoundToExponent(EInteger exponent,
ERounding rounding)
Returns a decimal number with the same value as this object but rounded to a
new exponent if necessary, using the given rounding mode.
|
EDecimal |
EDecimal.RoundToExponent(int exponentSmall,
ERounding rounding)
Returns a decimal number with the same value as this object but rounded to a
new exponent if necessary.
|
EFloat |
EFloat.RoundToExponentExact(EInteger exponent,
ERounding rounding)
Returns a binary number with the same value as this object but rounded to
the given exponent.
|
EDecimal |
EDecimal.RoundToExponentExact(int exponentSmall,
ERounding rounding)
Returns a decimal number with the same value as this object but rounded to
an integer, and signals an inexact flag if the result would be
inexact.
|
EContext |
EContext.WithRounding(ERounding rounding)
Copies this EContext with the specified rounding mode.
|
| Constructor and Description |
|---|
EContext(int precision,
ERounding rounding,
int exponentMinSmall,
int exponentMaxSmall,
boolean clampNormalExponents)
Initializes a new instance of the
EContext
class. |
CBOR for Java documentation, generated in 2016.