| Modifier and Type | Field and Description |
|---|---|
static EFloat |
EFloat.NaN
A not-a-number value.
|
static EFloat |
EFloat.NegativeInfinity
Negative infinity, less than any other number.
|
static EFloat |
EFloat.NegativeZero
Represents the number negative zero.
|
static EFloat |
EFloat.One
Represents the number 1.
|
static EFloat |
EFloat.PositiveInfinity
Positive infinity, greater than any other number.
|
static EFloat |
EFloat.SignalingNaN
A not-a-number value that signals an invalid operation flag when it's
passed as an argument to any arithmetic operation in
arbitrary-precision binary float.
|
static EFloat |
EFloat.Ten
Represents the number 10.
|
static EFloat |
EFloat.Zero
Represents the number 0.
|
| Modifier and Type | Method and Description |
|---|---|
EFloat |
EFloat.Abs()
Finds the absolute value of this object (if it's negative, it becomes
positive).
|
EFloat |
EFloat.Abs(EContext context)
Finds the absolute value of this object (if it's negative, it becomes
positive).
|
EFloat |
EFloat.Add(EFloat otherValue)
Adds this object and another binary float and returns the result.
|
EFloat |
EFloat.Add(EFloat otherValue,
EContext ctx)
Finds the sum of this object and another object.
|
EFloat |
EFloat.CompareToSignal(EFloat other,
EContext ctx)
Compares the mathematical values of this object and another object, treating
quiet NaN as signaling.
|
EFloat |
EFloat.CompareToWithContext(EFloat other,
EContext ctx)
Compares the mathematical values of this object and another object.
|
EFloat |
EFloat.CopySign(EFloat other)
Returns a number with the same value as this one, but copying the sign
(positive or negative) of another number.
|
static EFloat |
EFloat.Create(EInteger mantissa,
EInteger exponent)
Creates a number with the value exponent*2^mantissa (significand).
|
static EFloat |
EFloat.Create(int mantissaSmall,
int exponentSmall)
Creates a number with the value exponent*2^mantissa (significand).
|
static EFloat |
EFloat.CreateNaN(EInteger diag)
Creates a not-a-number arbitrary-precision binary float.
|
static EFloat |
EFloat.CreateNaN(EInteger diag,
boolean signaling,
boolean negative,
EContext ctx)
Creates a not-a-number arbitrary-precision binary float.
|
EFloat |
EFloat.Divide(EFloat divisor)
Divides this object by another binary float and returns the result.
|
EFloat |
EFloat.Divide(EFloat divisor,
EContext ctx)
Divides this arbitrary-precision binary float by another arbitrary-precision
binary float.
|
EFloat[] |
EFloat.DivideAndRemainderNaturalScale(EFloat divisor)
Deprecated.
Renamed to DivRemNaturalScale.
|
EFloat[] |
EFloat.DivideAndRemainderNaturalScale(EFloat divisor,
EContext ctx)
Deprecated.
Renamed to DivRemNaturalScale.
|
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,
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,
EContext ctx)
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.
|
EFloat |
EFloat.DivideToIntegerNaturalScale(EFloat divisor)
Divides two arbitrary-precision binary floats, and returns the integer part
of the result, 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.
|
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.
|
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).
|
EFloat[] |
EFloat.DivRemNaturalScale(EFloat divisor)
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.
|
static EFloat |
EFloat.FromByte(byte inputByte)
Converts a byte (from 0 to 255) to an arbitrary-precision binary float.
|
static EFloat |
EFloat.FromDouble(double dbl)
Creates a binary float from a 64-bit floating-point number.
|
static EFloat |
EFloat.FromEInteger(EInteger bigint)
Converts an arbitrary-precision integer to the same value as a binary float.
|
static EFloat |
EFloat.FromInt16(short inputInt16)
Converts a 16-bit signed integer to an arbitrary-precision binary float.
|
static EFloat |
EFloat.FromInt32(int inputInt32)
Converts a 32-bit signed integer to an arbitrary-precision binary float.
|
static EFloat |
EFloat.FromInt64(long inputInt64)
Converts a 64-bit signed integer to an arbitrary-precision binary float.
|
static EFloat |
EFloat.FromSingle(float flt)
Creates a binary float from a 32-bit floating-point number.
|
static EFloat |
EFloat.FromString(String str)
Not documented yet.
|
static EFloat |
EFloat.FromString(String str,
EContext ctx)
Creates a binary float from a text string that represents a number.
|
static EFloat |
EFloat.FromString(String str,
int offset,
int length)
Creates a binary float 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.
|
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.
|
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.
|
static EFloat |
EFloat.Max(EFloat first,
EFloat second)
Gets the greater value between two binary floats.
|
static EFloat |
EFloat.Max(EFloat first,
EFloat second,
EContext ctx)
Gets the greater value between two binary floats.
|
static EFloat |
EFloat.MaxMagnitude(EFloat first,
EFloat second)
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 EFloat |
EFloat.Min(EFloat first,
EFloat second)
Gets the lesser value between two binary floats.
|
static EFloat |
EFloat.Min(EFloat first,
EFloat second,
EContext ctx)
Gets the lesser value between two binary floats.
|
static EFloat |
EFloat.MinMagnitude(EFloat first,
EFloat second)
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)
Returns a number similar to this number but with the radix point moved to
the left.
|
EFloat |
EFloat.MovePointLeft(EInteger bigPlaces,
EContext ctx)
Returns a number similar to this number but with the radix point moved to
the left.
|
EFloat |
EFloat.MovePointLeft(int places)
Returns a number similar to this number but with the radix 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.
|
EFloat |
EFloat.MovePointRight(EInteger bigPlaces)
Returns a number similar to this number but with the radix point moved to
the right.
|
EFloat |
EFloat.MovePointRight(EInteger bigPlaces,
EContext ctx)
Returns a number similar to this number but with the radix point moved to
the right.
|
EFloat |
EFloat.MovePointRight(int places)
Returns a number similar to this number but with the radix 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.
|
EFloat |
EFloat.Multiply(EFloat otherValue)
Multiplies two binary floats.
|
EFloat |
EFloat.Multiply(EFloat op,
EContext ctx)
Multiplies two binary floats.
|
EFloat |
EFloat.MultiplyAndAdd(EFloat multiplicand,
EFloat augend)
Multiplies by one binary float, and then adds another binary float.
|
EFloat |
EFloat.MultiplyAndAdd(EFloat op,
EFloat augend,
EContext ctx)
Multiplies by one value, and then adds another value.
|
EFloat |
EFloat.MultiplyAndSubtract(EFloat op,
EFloat subtrahend,
EContext ctx)
Multiplies by one value, and then subtracts another value.
|
EFloat |
EFloat.Negate()
Gets an object with the same value as this one, but with the sign reversed.
|
EFloat |
EFloat.Negate(EContext context)
Returns a binary float 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.
|
EFloat |
EFloat.NextPlus(EContext ctx)
Finds the smallest value that's greater than the given 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.
|
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.
|
EFloat |
EFloat.Pow(EFloat exponent,
EContext ctx)
Raises this object's value to the given exponent.
|
EFloat |
EFloat.Pow(int exponentSmall)
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.
|
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.
|
EFloat |
EFloat.Quantize(int desiredExponentInt,
EContext ctx)
Returns a binary float with the same value but a new exponent.
|
EFloat |
EFloat.Reduce(EContext ctx)
Removes trailing zeros from this object's mantissa (significand).
|
EFloat |
EFloat.Remainder(EFloat divisor,
EContext ctx)
Finds the remainder that results when dividing two arbitrary-precision
binary floats.
|
EFloat |
EFloat.RemainderNaturalScale(EFloat divisor)
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").
|
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.
|
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.
|
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.
|
EFloat |
EFloat.RoundToExponentExact(EInteger exponent,
ERounding rounding)
Returns a binary number with the same value as this object but rounded to
the given exponent.
|
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.
|
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.
|
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. |
EFloat |
EFloat.RoundToIntegralExact(EContext ctx)
Deprecated.
Renamed to RoundToIntegerExact.
|
EFloat |
EFloat.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.
|
EFloat |
EFloat.ScaleByPowerOfTwo(EInteger bigPlaces)
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)
Returns a number similar to this number but with the 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.
|
EFloat |
EFloat.SquareRoot(EContext ctx)
Deprecated.
Renamed to Sqrt.
|
EFloat |
EFloat.Subtract(EFloat otherValue)
Subtracts an arbitrary-precision binary float from this instance and returns
the result.
|
EFloat |
EFloat.Subtract(EFloat otherValue,
EContext ctx)
Subtracts an arbitrary-precision binary float from this instance.
|
EFloat |
ERational.ToEFloat()
Converts this rational number to a binary float.
|
EFloat |
EDecimal.ToEFloat()
Creates a binary floating-point number from this object's value.
|
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.
|
EFloat |
ERational.ToExtendedFloat()
Deprecated.
Renamed to ToEFloat.
|
EFloat |
EDecimal.ToExtendedFloat()
Deprecated.
Renamed to ToEFloat.
|
EFloat |
ERational.ToExtendedFloat(EContext ctx)
Deprecated.
Renamed to ToEFloat.
|
EFloat |
ERational.ToExtendedFloatExactIfPossible(EContext ctx)
Deprecated.
Renamed to ToEFloatExactIfPossible.
|
EFloat |
EFloat.Ulp()
Returns the unit in the last place.
|
| Modifier and Type | Method and Description |
|---|---|
EFloat |
EFloat.Add(EFloat otherValue)
Adds this object and another binary float and returns the result.
|
EFloat |
EFloat.Add(EFloat otherValue,
EContext ctx)
Finds the sum of this object and another object.
|
int |
EFloat.compareTo(EFloat other)
Compares the mathematical values of this object and another object,
accepting NaN values.
|
int |
ERational.CompareToBinary(EFloat other)
Compares an arbitrary-precision binary float with this instance.
|
int |
EDecimal.CompareToBinary(EFloat other)
Compares an arbitrary-precision binary float with this instance.
|
EFloat |
EFloat.CompareToSignal(EFloat other,
EContext ctx)
Compares the mathematical values of this object and another object, treating
quiet NaN as signaling.
|
int |
EFloat.CompareToTotal(EFloat other)
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.
|
int |
EFloat.CompareToTotalMagnitude(EFloat other)
Compares the absolute values of this object and another object, imposing a
total ordering on all possible values (ignoring their signs).
|
EFloat |
EFloat.CompareToWithContext(EFloat other,
EContext ctx)
Compares the mathematical values of this object and another object.
|
EFloat |
EFloat.CopySign(EFloat other)
Returns a number with the same value as this one, but copying the sign
(positive or negative) of another number.
|
EFloat |
EFloat.Divide(EFloat divisor)
Divides this object by another binary float and returns the result.
|
EFloat |
EFloat.Divide(EFloat divisor,
EContext ctx)
Divides this arbitrary-precision binary float by another arbitrary-precision
binary float.
|
EFloat[] |
EFloat.DivideAndRemainderNaturalScale(EFloat divisor)
Deprecated.
Renamed to DivRemNaturalScale.
|
EFloat[] |
EFloat.DivideAndRemainderNaturalScale(EFloat divisor,
EContext ctx)
Deprecated.
Renamed to DivRemNaturalScale.
|
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,
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,
EContext ctx)
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.
|
EFloat |
EFloat.DivideToIntegerNaturalScale(EFloat divisor)
Divides two arbitrary-precision binary floats, and returns the integer part
of the result, 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.
|
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.
|
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).
|
EFloat[] |
EFloat.DivRemNaturalScale(EFloat divisor)
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.
|
boolean |
EFloat.equals(EFloat other)
Determines whether this object's mantissa (significand), exponent, and
properties are equal to those of another object.
|
boolean |
EFloat.EqualsInternal(EFloat otherValue)
Determines whether this object's mantissa (significand) and exponent
are equal to those of another object.
|
static ERational |
ERational.FromEFloat(EFloat ef)
Not documented yet.
|
static EDecimal |
EDecimal.FromEFloat(EFloat bigfloat)
Creates a decimal number from an arbitrary-precision binary floating-point
number.
|
static ERational |
ERational.FromExtendedFloat(EFloat ef)
Deprecated.
Renamed to FromEFloat.
|
static EDecimal |
EDecimal.FromExtendedFloat(EFloat ef)
Deprecated.
Renamed to FromEFloat.
|
static EFloat |
EFloat.Max(EFloat first,
EFloat second)
Gets the greater value between two binary floats.
|
static EFloat |
EFloat.Max(EFloat first,
EFloat second,
EContext ctx)
Gets the greater value between two binary floats.
|
static EFloat |
EFloat.MaxMagnitude(EFloat first,
EFloat second)
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 EFloat |
EFloat.Min(EFloat first,
EFloat second)
Gets the lesser value between two binary floats.
|
static EFloat |
EFloat.Min(EFloat first,
EFloat second,
EContext ctx)
Gets the lesser value between two binary floats.
|
static EFloat |
EFloat.MinMagnitude(EFloat first,
EFloat second)
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.Multiply(EFloat otherValue)
Multiplies two binary floats.
|
EFloat |
EFloat.Multiply(EFloat op,
EContext ctx)
Multiplies two binary floats.
|
EFloat |
EFloat.MultiplyAndAdd(EFloat multiplicand,
EFloat augend)
Multiplies by one binary float, and then adds another binary float.
|
EFloat |
EFloat.MultiplyAndAdd(EFloat op,
EFloat augend,
EContext ctx)
Multiplies by one value, and then adds another value.
|
EFloat |
EFloat.MultiplyAndSubtract(EFloat op,
EFloat subtrahend,
EContext ctx)
Multiplies by one value, and then subtracts another 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.
|
EFloat |
EFloat.Pow(EFloat exponent,
EContext ctx)
Raises this object's value to the given exponent.
|
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.Remainder(EFloat divisor,
EContext ctx)
Finds the remainder that results when dividing two arbitrary-precision
binary floats.
|
EFloat |
EFloat.RemainderNaturalScale(EFloat divisor)
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").
|
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.Subtract(EFloat otherValue)
Subtracts an arbitrary-precision binary float from this instance and returns
the result.
|
EFloat |
EFloat.Subtract(EFloat otherValue,
EContext ctx)
Subtracts an arbitrary-precision binary float from this instance.
|
CBOR for Java documentation, generated in 2016.