| Modifier and Type | Field and Description |
|---|---|
static EContext |
EContext.Basic
A basic arithmetic context, 9 digits precision, rounding mode half-up,
unlimited exponent range.
|
static EContext |
EContext.BigDecimalJava
An arithmetic context for Java's BigDecimal format.
|
static EContext |
EContext.Binary128
An arithmetic context for the IEEE-754-2008 binary128 format, 113 bits
precision.
|
static EContext |
EContext.Binary16
An arithmetic context for the IEEE-754-2008 binary16 format, 11 bits
precision.
|
static EContext |
EContext.Binary32
An arithmetic context for the IEEE-754-2008 binary32 format, 24 bits
precision.
|
static EContext |
EContext.Binary64
An arithmetic context for the IEEE-754-2008 binary64 format, 53 bits
precision.
|
static EContext |
EContext.CliDecimal
An arithmetic context for the .NET Framework decimal format (see
"Forms of numbers"), 96 bits
precision, and a valid exponent range of -28 to 0. |
static EContext |
EContext.Decimal128
An arithmetic context for the IEEE-754-2008 decimal128 format.
|
static EContext |
EContext.Decimal32
An arithmetic context for the IEEE-754-2008 decimal32 format.
|
static EContext |
EContext.Decimal64
An arithmetic context for the IEEE-754-2008 decimal64 format.
|
static EContext |
EContext.Unlimited
No specific (theoretical) limit on precision.
|
static EContext |
EContext.UnlimitedHalfEven
No specific (theoretical) limit on precision.
|
| Modifier and Type | Method and Description |
|---|---|
EContext |
EContext.Copy()
Initializes a new EContext that is a copy of another EContext.
|
static EContext |
EContext.ForPrecision(int precision)
Creates a new arithmetic context using the given maximum number of digits,
an unlimited exponent range, and the HalfUp rounding mode.
|
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.
|
EContext |
ETrapException.getContext()
Gets the arithmetic context used during the operation that triggered the
trap.
|
EContext |
EContext.WithAdjustExponent(boolean adjustExponent)
Copies this EContext and sets the copy's "AdjustExponent" property to the
given value.
|
EContext |
EContext.WithBigExponentRange(EInteger exponentMin,
EInteger exponentMax)
Copies this arithmetic context and sets the copy's exponent range.
|
EContext |
EContext.WithBigPrecision(EInteger bigintPrecision)
Copies this EContext and gives it a particular precision value.
|
EContext |
EContext.WithBlankFlags()
Copies this EContext with
HasFlags set to true and a Flags value of
0. |
EContext |
EContext.WithExponentClamp(boolean clamp)
Copies this arithmetic context and sets the copy's "ClampNormalExponents"
flag to the given value.
|
EContext |
EContext.WithExponentRange(int exponentMinSmall,
int exponentMaxSmall)
Copies this arithmetic context and sets the copy's exponent range.
|
EContext |
EContext.WithNoFlags()
Copies this EContext with
HasFlags set to false and a Flags value of
0. |
EContext |
EContext.WithPrecision(int precision)
Copies this EContext and gives it a particular precision value.
|
EContext |
EContext.WithPrecisionInBits(boolean isPrecisionBits)
Copies this EContext and sets the copy's "IsPrecisionInBits" property to the
given value.
|
EContext |
EContext.WithRounding(ERounding rounding)
Copies this EContext with the specified rounding mode.
|
EContext |
EContext.WithSimplified(boolean simplified)
Copies this EContext and sets the copy's "IsSimplified" property to the
given value.
|
EContext |
EContext.WithTraps(int traps)
Copies this EContext with Traps set to the given value.
|
EContext |
EContext.WithUnlimitedExponents()
Copies this EContext with an unlimited exponent range.
|
| Modifier and Type | Method and Description |
|---|---|
EFloat |
EFloat.Abs(EContext context)
Finds the absolute value of this object (if it's negative, it becomes
positive).
|
EDecimal |
EDecimal.Abs(EContext context)
Finds the absolute value of this object (if it's negative, it becomes
positive).
|
EDecimal |
EDecimal.Add(EDecimal otherValue,
EContext ctx)
Finds the sum of this object and another object.
|
EFloat |
EFloat.Add(EFloat otherValue,
EContext ctx)
Finds the sum of this object and another object.
|
EDecimal |
EDecimal.CompareToSignal(EDecimal other,
EContext ctx)
Compares the mathematical values of this object and another object, treating
quiet NaN as signaling.
|
EFloat |
EFloat.CompareToSignal(EFloat other,
EContext ctx)
Compares the mathematical values of this object and another object, treating
quiet NaN as signaling.
|
int |
EDecimal.CompareToTotal(EDecimal other,
EContext ctx)
Compares the values of this object and another object, imposing a total
ordering on all possible values.
|
int |
EFloat.CompareToTotal(EFloat other,
EContext ctx)
Compares the values of this object and another object, imposing a total
ordering on all possible values.
|
EDecimal |
EDecimal.CompareToWithContext(EDecimal other,
EContext ctx)
Compares the mathematical values of this object and another object.
|
EFloat |
EFloat.CompareToWithContext(EFloat other,
EContext ctx)
Compares the mathematical values of this object and another object.
|
static EFloat |
EFloat.CreateNaN(EInteger diag,
boolean signaling,
boolean negative,
EContext ctx)
Creates a not-a-number arbitrary-precision binary float.
|
static EDecimal |
EDecimal.CreateNaN(EInteger diag,
boolean signaling,
boolean negative,
EContext ctx)
Creates a not-a-number arbitrary-precision decimal number.
|
EDecimal |
EDecimal.Divide(EDecimal divisor,
EContext ctx)
Divides this arbitrary-precision decimal number by another
arbitrary-precision decimal number.
|
EFloat |
EFloat.Divide(EFloat divisor,
EContext ctx)
Divides this arbitrary-precision binary float by another arbitrary-precision
binary float.
|
EDecimal[] |
EDecimal.DivideAndRemainderNaturalScale(EDecimal divisor,
EContext ctx)
Deprecated.
Renamed to DivRemNaturalScale.
|
EFloat[] |
EFloat.DivideAndRemainderNaturalScale(EFloat divisor,
EContext ctx)
Deprecated.
Renamed to DivRemNaturalScale.
|
EDecimal |
EDecimal.DivideToExponent(EDecimal divisor,
EInteger exponent,
EContext ctx)
Divides two arbitrary-precision decimal numbers, and gives a particular
exponent to the result.
|
EDecimal |
EDecimal.DivideToExponent(EDecimal divisor,
int desiredExponentInt,
EContext ctx)
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,
EContext ctx)
Divides two arbitrary-precision decimal numbers, and gives a particular
exponent to the result.
|
EFloat |
EFloat.DivideToExponent(EFloat divisor,
EInteger exponent,
EContext ctx)
Divides two arbitrary-precision binary floats, and gives a particular
exponent to the result.
|
EFloat |
EFloat.DivideToExponent(EFloat divisor,
long desiredExponentSmall,
EContext ctx)
Divides two arbitrary-precision binary floats, and gives a particular
exponent to the result.
|
EDecimal |
EDecimal.DivideToIntegerNaturalScale(EDecimal divisor,
EContext ctx)
Divides this object by another object, and returns the integer part of the
result (which is initially rounded down), with the preferred exponent
set to this value's exponent minus the divisor's exponent.
|
EFloat |
EFloat.DivideToIntegerNaturalScale(EFloat divisor,
EContext ctx)
Divides this object by another object, and returns the integer part of the
result (which is initially rounded down), with the preferred exponent
set to this value's exponent minus the divisor's exponent.
|
EDecimal |
EDecimal.DivideToIntegerZeroScale(EDecimal divisor,
EContext ctx)
Divides this object by another object, and returns the integer part of the
result, with the exponent set to 0.
|
EFloat |
EFloat.DivideToIntegerZeroScale(EFloat divisor,
EContext ctx)
Divides this object by another object, and returns the integer part of the
result, with the exponent set to 0.
|
EDecimal[] |
EDecimal.DivRemNaturalScale(EDecimal divisor,
EContext ctx)
Calculates the quotient and remainder using the DivideToIntegerNaturalScale
and the formula in RemainderNaturalScale.
|
EFloat[] |
EFloat.DivRemNaturalScale(EFloat divisor,
EContext ctx)
Calculates the quotient and remainder using the DivideToIntegerNaturalScale
and the formula in RemainderNaturalScale.
|
EFloat |
EFloat.Exp(EContext ctx)
Finds e (the base of natural logarithms) raised to the power of this
object's value.
|
EDecimal |
EDecimal.Exp(EContext ctx)
Finds e (the base of natural logarithms) raised to the power of this
object's value.
|
static EFloat |
EFloat.FromString(String str,
EContext ctx)
Creates a binary float from a text string that represents a number.
|
static EDecimal |
EDecimal.FromString(String str,
EContext ctx)
Creates a decimal number from a text string that represents a number.
|
static EFloat |
EFloat.FromString(String str,
int offset,
int length,
EContext ctx)
Creates a binary float from a text string that represents a number.
|
static EDecimal |
EDecimal.FromString(String str,
int offset,
int length,
EContext ctx)
Creates a decimal number from a text string that represents a number.
|
EFloat |
EFloat.Log(EContext ctx)
Finds the natural logarithm of this object, that is, the power (exponent)
that e (the base of natural logarithms) must be raised to in order to
equal this object's value.
|
EDecimal |
EDecimal.Log(EContext ctx)
Finds the natural logarithm of this object, that is, the power (exponent)
that e (the base of natural logarithms) must be raised to in order to
equal this object's value.
|
EFloat |
EFloat.Log10(EContext ctx)
Finds the base-10 logarithm of this object, that is, the power (exponent)
that the number 10 must be raised to in order to equal this
object's value.
|
EDecimal |
EDecimal.Log10(EContext ctx)
Finds the base-10 logarithm of this object, that is, the power (exponent)
that the number 10 must be raised to in order to equal this
object's value.
|
static EDecimal |
EDecimal.Max(EDecimal first,
EDecimal second,
EContext ctx)
Gets the greater value between two decimal numbers.
|
static EFloat |
EFloat.Max(EFloat first,
EFloat second,
EContext ctx)
Gets the greater value between two binary floats.
|
static EDecimal |
EDecimal.MaxMagnitude(EDecimal first,
EDecimal second,
EContext ctx)
Gets the greater value between two values, ignoring their signs.
|
static EFloat |
EFloat.MaxMagnitude(EFloat first,
EFloat second,
EContext ctx)
Gets the greater value between two values, ignoring their signs.
|
static EDecimal |
EDecimal.Min(EDecimal first,
EDecimal second,
EContext ctx)
Gets the lesser value between two decimal numbers.
|
static EFloat |
EFloat.Min(EFloat first,
EFloat second,
EContext ctx)
Gets the lesser value between two binary floats.
|
static EDecimal |
EDecimal.MinMagnitude(EDecimal first,
EDecimal second,
EContext ctx)
Gets the lesser value between two values, ignoring their signs.
|
static EFloat |
EFloat.MinMagnitude(EFloat first,
EFloat second,
EContext ctx)
Gets the lesser value between two values, ignoring their signs.
|
EFloat |
EFloat.MovePointLeft(EInteger bigPlaces,
EContext ctx)
Returns a number similar to this number but with the radix point moved to
the left.
|
EDecimal |
EDecimal.MovePointLeft(EInteger bigPlaces,
EContext ctx)
Returns a number similar to this number but with the decimal point moved to
the left.
|
EFloat |
EFloat.MovePointLeft(int places,
EContext ctx)
Returns a number similar to this number but with the radix point moved to
the left.
|
EDecimal |
EDecimal.MovePointLeft(int places,
EContext ctx)
Returns a number similar to this number but with the decimal point moved to
the left.
|
EFloat |
EFloat.MovePointRight(EInteger bigPlaces,
EContext ctx)
Returns a number similar to this number but with the radix point moved to
the right.
|
EDecimal |
EDecimal.MovePointRight(EInteger bigPlaces,
EContext ctx)
Returns a number similar to this number but with the decimal point moved to
the right.
|
EFloat |
EFloat.MovePointRight(int places,
EContext ctx)
Returns a number similar to this number but with the radix point moved to
the right.
|
EDecimal |
EDecimal.MovePointRight(int places,
EContext ctx)
Returns a number similar to this number but with the decimal point moved to
the right.
|
EDecimal |
EDecimal.Multiply(EDecimal op,
EContext ctx)
Multiplies two decimal numbers.
|
EFloat |
EFloat.Multiply(EFloat op,
EContext ctx)
Multiplies two binary floats.
|
EDecimal |
EDecimal.MultiplyAndAdd(EDecimal op,
EDecimal augend,
EContext ctx)
Multiplies by one value, and then adds another value.
|
EFloat |
EFloat.MultiplyAndAdd(EFloat op,
EFloat augend,
EContext ctx)
Multiplies by one value, and then adds another value.
|
EDecimal |
EDecimal.MultiplyAndSubtract(EDecimal op,
EDecimal subtrahend,
EContext ctx)
Multiplies by one value, and then subtracts another value.
|
EFloat |
EFloat.MultiplyAndSubtract(EFloat op,
EFloat subtrahend,
EContext ctx)
Multiplies by one value, and then subtracts another value.
|
EFloat |
EFloat.Negate(EContext context)
Returns a binary float with the same value as this object but with the sign
reversed.
|
EDecimal |
EDecimal.Negate(EContext context)
Returns a decimal number with the same value as this object but with the
sign reversed.
|
EFloat |
EFloat.NextMinus(EContext ctx)
Finds the largest value that's smaller than the given value.
|
EDecimal |
EDecimal.NextMinus(EContext ctx)
Finds the largest value that's smaller than the given value.
|
EFloat |
EFloat.NextPlus(EContext ctx)
Finds the smallest value that's greater than the given value.
|
EDecimal |
EDecimal.NextPlus(EContext ctx)
Finds the smallest value that's greater than the given value.
|
EDecimal |
EDecimal.NextToward(EDecimal otherValue,
EContext ctx)
Finds the next value that is closer to the other object's value than
this object's value.
|
EFloat |
EFloat.NextToward(EFloat otherValue,
EContext ctx)
Finds the next value that is closer to the other object's value than
this object's value.
|
static EFloat |
EFloat.PI(EContext ctx)
Finds the constant π, the circumference of a circle divided by its
diameter.
|
static EDecimal |
EDecimal.PI(EContext ctx)
Finds the constant π, the circumference of a circle divided by its
diameter.
|
EFloat |
EFloat.Plus(EContext ctx)
Rounds this object's value to a given precision, using the given
rounding mode and range of exponent, and also converts negative zero
to positive zero.
|
EDecimal |
EDecimal.Plus(EContext ctx)
Rounds this object's value to a given precision, using the given
rounding mode and range of exponent, and also converts negative zero
to positive zero.
|
EDecimal |
EDecimal.Pow(EDecimal exponent,
EContext ctx)
Raises this object's value to the given exponent.
|
EFloat |
EFloat.Pow(EFloat exponent,
EContext ctx)
Raises this object's value to the given exponent.
|
EFloat |
EFloat.Pow(int exponentSmall,
EContext ctx)
Raises this object's value to the given exponent.
|
EDecimal |
EDecimal.Pow(int exponentSmall,
EContext ctx)
Raises this object's value to the given exponent.
|
EDecimal |
EDecimal.Quantize(EDecimal otherValue,
EContext ctx)
Returns a decimal number with the same value as this object but with the
same exponent as another decimal number.
|
EFloat |
EFloat.Quantize(EFloat otherValue,
EContext ctx)
Returns a binary float with the same value as this object but with the same
exponent as another binary float.
|
EFloat |
EFloat.Quantize(EInteger desiredExponent,
EContext ctx)
Returns a binary float with the same value but a new exponent.
|
EDecimal |
EDecimal.Quantize(EInteger desiredExponent,
EContext ctx)
Returns a decimal number with the same value but a new exponent.
|
EFloat |
EFloat.Quantize(int desiredExponentInt,
EContext ctx)
Returns a binary float with the same value but a new exponent.
|
EDecimal |
EDecimal.Quantize(int desiredExponentInt,
EContext ctx)
Returns a decimal number with the same value but a new exponent.
|
EFloat |
EFloat.Reduce(EContext ctx)
Removes trailing zeros from this object's mantissa (significand).
|
EDecimal |
EDecimal.Reduce(EContext ctx)
Removes trailing zeros from this object's mantissa (significand).
|
EDecimal |
EDecimal.Remainder(EDecimal divisor,
EContext ctx)
Finds the remainder that results when dividing two arbitrary-precision
decimal numbers.
|
EFloat |
EFloat.Remainder(EFloat divisor,
EContext ctx)
Finds the remainder that results when dividing two arbitrary-precision
binary floats.
|
EDecimal |
EDecimal.RemainderNaturalScale(EDecimal divisor,
EContext ctx)
Calculates the remainder of a number by the formula "this" - (("this" /
"divisor") * "divisor").
|
EFloat |
EFloat.RemainderNaturalScale(EFloat divisor,
EContext ctx)
Calculates the remainder of a number by the formula "this" - (("this" /
"divisor") * "divisor").
|
EDecimal |
EDecimal.RemainderNear(EDecimal divisor,
EContext ctx)
Finds the distance to the closest multiple of the given divisor, based on
the result of dividing this object's value by another
object's value.
|
EFloat |
EFloat.RemainderNear(EFloat divisor,
EContext ctx)
Finds the distance to the closest multiple of the given divisor, based on
the result of dividing this object's value by another
object's value.
|
EFloat |
EFloat.RoundToExponent(EInteger exponent,
EContext ctx)
Returns a binary float with the same value as this object but rounded to a
new exponent if necessary.
|
EDecimal |
EDecimal.RoundToExponent(EInteger exponent,
EContext ctx)
Returns a decimal number with the same value as this object but rounded to a
new exponent if necessary.
|
EFloat |
EFloat.RoundToExponent(int exponentSmall,
EContext ctx)
Returns a binary float with the same value as this object but rounded to a
new exponent if necessary.
|
EDecimal |
EDecimal.RoundToExponent(int exponentSmall,
EContext ctx)
Returns a decimal number with the same value as this object but rounded to a
new exponent if necessary.
|
EFloat |
EFloat.RoundToExponentExact(EInteger exponent,
EContext ctx)
Returns a binary float with the same value as this object but rounded to the
given exponent, and signals an inexact flag if the result would be
inexact.
|
EDecimal |
EDecimal.RoundToExponentExact(EInteger exponent,
EContext ctx)
Returns a decimal number with the same value as this object but rounded to
the given exponent, and signals an inexact flag if the result would
be inexact.
|
EFloat |
EFloat.RoundToExponentExact(int exponentSmall,
EContext ctx)
Returns a binary float with the same value as this object but rounded to an
integer, and signals an inexact flag if the result would be inexact.
|
EDecimal |
EDecimal.RoundToExponentExact(int exponentSmall,
EContext ctx)
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.
|
EFloat |
EFloat.RoundToIntegerExact(EContext ctx)
Returns a binary float with the same value as this object but rounded to an
integer, and signals an inexact flag if the result would be inexact.
|
EDecimal |
EDecimal.RoundToIntegerExact(EContext ctx)
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.
|
EFloat |
EFloat.RoundToIntegerNoRoundedFlag(EContext ctx)
Returns a binary float with the same value as this object but rounded to an
integer, without adding the
FlagInexact or FlagRounded
flags. |
EDecimal |
EDecimal.RoundToIntegerNoRoundedFlag(EContext ctx)
Returns a decimal number with the same value as this object but rounded to
an integer, without adding the
FlagInexact or
FlagRounded flags. |
EFloat |
EFloat.RoundToIntegralExact(EContext ctx)
Deprecated.
Renamed to RoundToIntegerExact.
|
EDecimal |
EDecimal.RoundToIntegralExact(EContext ctx)
Deprecated.
Renamed to RoundToIntegerExact.
|
EFloat |
EFloat.RoundToIntegralNoRoundedFlag(EContext ctx)
Deprecated.
Renamed to RoundToIntegerNoRoundedFlag.
|
EDecimal |
EDecimal.RoundToIntegralNoRoundedFlag(EContext ctx)
Deprecated.
Renamed to RoundToIntegerNoRoundedFlag.
|
EFloat |
EFloat.RoundToPrecision(EContext ctx)
Rounds this object's value to a given precision, using the given
rounding mode and range of exponent.
|
EDecimal |
EDecimal.RoundToPrecision(EContext ctx)
Rounds this object's value to a given precision, using the given
rounding mode and range of exponent.
|
EDecimal |
EDecimal.ScaleByPowerOfTen(EInteger bigPlaces,
EContext ctx)
Returns a number similar to this number but with its scale adjusted.
|
EDecimal |
EDecimal.ScaleByPowerOfTen(int places,
EContext ctx)
Returns a number similar to this number but with the scale adjusted.
|
EFloat |
EFloat.ScaleByPowerOfTwo(EInteger bigPlaces,
EContext ctx)
Returns a number similar to this number but with its scale adjusted.
|
EFloat |
EFloat.ScaleByPowerOfTwo(int places,
EContext ctx)
Returns a number similar to this number but with the scale adjusted.
|
EFloat |
EFloat.Sqrt(EContext ctx)
Finds the square root of this object's value.
|
EDecimal |
EDecimal.Sqrt(EContext ctx)
Finds the square root of this object's value.
|
EFloat |
EFloat.SquareRoot(EContext ctx)
Deprecated.
Renamed to Sqrt.
|
EDecimal |
EDecimal.SquareRoot(EContext ctx)
Deprecated.
Renamed to Sqrt.
|
EDecimal |
EDecimal.Subtract(EDecimal otherValue,
EContext ctx)
Subtracts an arbitrary-precision decimal number from this instance.
|
EFloat |
EFloat.Subtract(EFloat otherValue,
EContext ctx)
Subtracts an arbitrary-precision binary float from this instance.
|
EDecimal |
ERational.ToEDecimal(EContext ctx)
Converts this rational number to a decimal number and rounds the result to
the given precision.
|
EDecimal |
ERational.ToEDecimalExactIfPossible(EContext ctx)
Converts this rational number to a decimal number, but if the result would
have a nonterminating decimal expansion, rounds that result to the
given precision.
|
EFloat |
ERational.ToEFloat(EContext ctx)
Converts this rational number to a binary float and rounds that result to
the given precision.
|
EFloat |
EDecimal.ToEFloat(EContext ec)
Not documented yet.
|
EFloat |
ERational.ToEFloatExactIfPossible(EContext ctx)
Converts this rational number to a binary float, but if the result would
have a nonterminating binary expansion, rounds that result to the
given precision.
|
EDecimal |
ERational.ToExtendedDecimal(EContext ctx)
Deprecated.
Renamed to ToEDecimal.
|
EDecimal |
ERational.ToExtendedDecimalExactIfPossible(EContext ctx)
Deprecated.
Renamed to ToEDecimalExactIfPossible.
|
EFloat |
ERational.ToExtendedFloat(EContext ctx)
Deprecated.
Renamed to ToEFloat.
|
EFloat |
ERational.ToExtendedFloatExactIfPossible(EContext ctx)
Deprecated.
Renamed to ToEFloatExactIfPossible.
|
String |
EFloat.ToShortestString(EContext ctx)
Returns a string representation of this number's value after rounding to the
given precision (using the given arithmetic context).
|
| Constructor and Description |
|---|
ETrapException(int flag,
EContext ctx,
Object result)
Initializes a new instance of the
ETrapException class. |
CBOR for Java documentation, generated in 2016.