- CanFitInInt32() - Method in class com.upokecenter.numbers.EInteger
-
Returns whether this object's value can fit in a 32-bit signed integer.
- CanFitInInt64() - Method in class com.upokecenter.numbers.EInteger
-
Returns whether this object's value can fit in a 64-bit signed integer.
- CliDecimal - Static variable in class com.upokecenter.numbers.EContext
-
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.
- com.upokecenter.numbers - package com.upokecenter.numbers
-
- compareTo(EDecimal) - Method in class com.upokecenter.numbers.EDecimal
-
Compares the mathematical values of this object and another object,
accepting NaN values.
- compareTo(EFloat) - Method in class com.upokecenter.numbers.EFloat
-
Compares the mathematical values of this object and another object,
accepting NaN values.
- compareTo(EInteger) - Method in class com.upokecenter.numbers.EInteger
-
Compares an arbitrary-precision integer with this instance.
- compareTo(ERational) - Method in class com.upokecenter.numbers.ERational
-
Compares an arbitrary-precision rational number with this instance.
- CompareToBinary(EFloat) - Method in class com.upokecenter.numbers.EDecimal
-
Compares an arbitrary-precision binary float with this instance.
- CompareToBinary(EFloat) - Method in class com.upokecenter.numbers.ERational
-
Compares an arbitrary-precision binary float with this instance.
- CompareToDecimal(EDecimal) - Method in class com.upokecenter.numbers.ERational
-
Compares an arbitrary-precision decimal number with this instance.
- CompareToSignal(EDecimal, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Compares the mathematical values of this object and another object, treating
quiet NaN as signaling.
- CompareToSignal(EFloat, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Compares the mathematical values of this object and another object, treating
quiet NaN as signaling.
- CompareToTotal(EDecimal, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Compares the values of this object and another object, imposing a total
ordering on all possible values.
- CompareToTotal(EDecimal) - Method in class com.upokecenter.numbers.EDecimal
-
Compares the values of this object and another object, imposing a total
ordering on all possible values.
- CompareToTotal(EFloat, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Compares the values of this object and another object, imposing a total
ordering on all possible values.
- CompareToTotal(EFloat) - Method in class com.upokecenter.numbers.EFloat
-
Compares the values of this object and another object, imposing a total
ordering on all possible values.
- CompareToTotal(ERational) - Method in class com.upokecenter.numbers.ERational
-
Compares the values of this object and another object, imposing a total
ordering on all possible values.
- CompareToTotalMagnitude(EDecimal) - Method in class com.upokecenter.numbers.EDecimal
-
Compares the absolute values of this object and another object, imposing a
total ordering on all possible values (ignoring their signs).
- CompareToTotalMagnitude(EFloat) - Method in class com.upokecenter.numbers.EFloat
-
Compares the absolute values of this object and another object, imposing a
total ordering on all possible values (ignoring their signs).
- CompareToTotalMagnitude(ERational) - Method in class com.upokecenter.numbers.ERational
-
Compares the absolute values of this object and another object, imposing a
total ordering on all possible values (ignoring their signs).
- CompareToWithContext(EDecimal, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Compares the mathematical values of this object and another object.
- CompareToWithContext(EFloat, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Compares the mathematical values of this object and another object.
- Copy() - Method in class com.upokecenter.numbers.EContext
-
Initializes a new EContext that is a copy of another EContext.
- CopySign(EDecimal) - Method in class com.upokecenter.numbers.EDecimal
-
Returns a number with the same value as this one, but copying the sign
(positive or negative) of another number.
- CopySign(EFloat) - Method in class com.upokecenter.numbers.EFloat
-
Returns a number with the same value as this one, but copying the sign
(positive or negative) of another number.
- CopySign(ERational) - Method in class com.upokecenter.numbers.ERational
-
Returns a number with the same value as this one, but copying the sign
(positive or negative) of another number.
- Create(int, int) - Static method in class com.upokecenter.numbers.EDecimal
-
Creates a number with the value exponent*10^mantissa
- Create(EInteger, EInteger) - Static method in class com.upokecenter.numbers.EDecimal
-
Creates a number with the value exponent*10^mantissa
- Create(int, int) - Static method in class com.upokecenter.numbers.EFloat
-
Creates a number with the value exponent*2^mantissa (significand).
- Create(EInteger, EInteger) - Static method in class com.upokecenter.numbers.EFloat
-
Creates a number with the value exponent*2^mantissa (significand).
- Create(int, int) - Static method in class com.upokecenter.numbers.ERational
-
Creates a rational number with the given numerator and denominator.
- Create(EInteger, EInteger) - Static method in class com.upokecenter.numbers.ERational
-
Creates a rational number with the given numerator and denominator.
- CreateNaN(EInteger) - Static method in class com.upokecenter.numbers.EDecimal
-
Creates a not-a-number arbitrary-precision decimal number.
- CreateNaN(EInteger, boolean, boolean, EContext) - Static method in class com.upokecenter.numbers.EDecimal
-
Creates a not-a-number arbitrary-precision decimal number.
- CreateNaN(EInteger) - Static method in class com.upokecenter.numbers.EFloat
-
Creates a not-a-number arbitrary-precision binary float.
- CreateNaN(EInteger, boolean, boolean, EContext) - Static method in class com.upokecenter.numbers.EFloat
-
Creates a not-a-number arbitrary-precision binary float.
- CreateNaN(EInteger) - Static method in class com.upokecenter.numbers.ERational
-
Creates a not-a-number arbitrary-precision rational number.
- CreateNaN(EInteger, boolean, boolean) - Static method in class com.upokecenter.numbers.ERational
-
Creates a not-a-number arbitrary-precision rational number.
- Decimal128 - Static variable in class com.upokecenter.numbers.EContext
-
An arithmetic context for the IEEE-754-2008 decimal128 format.
- Decimal32 - Static variable in class com.upokecenter.numbers.EContext
-
An arithmetic context for the IEEE-754-2008 decimal32 format.
- Decimal64 - Static variable in class com.upokecenter.numbers.EContext
-
An arithmetic context for the IEEE-754-2008 decimal64 format.
- Divide(EDecimal) - Method in class com.upokecenter.numbers.EDecimal
-
Divides this object by another decimal number and returns the result.
- Divide(EDecimal, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Divides this arbitrary-precision decimal number by another
arbitrary-precision decimal number.
- Divide(EFloat) - Method in class com.upokecenter.numbers.EFloat
-
Divides this object by another binary float and returns the result.
- Divide(EFloat, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Divides this arbitrary-precision binary float by another arbitrary-precision
binary float.
- Divide(EInteger) - Method in class com.upokecenter.numbers.EInteger
-
Divides this instance by the value of an arbitrary-precision integer.
- Divide(ERational) - Method in class com.upokecenter.numbers.ERational
-
Divides this instance by the value of an arbitrary-precision rational number
object.
- DivideAndRemainderNaturalScale(EDecimal) - Method in class com.upokecenter.numbers.EDecimal
-
- DivideAndRemainderNaturalScale(EDecimal, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
- DivideAndRemainderNaturalScale(EFloat) - Method in class com.upokecenter.numbers.EFloat
-
- DivideAndRemainderNaturalScale(EFloat, EContext) - Method in class com.upokecenter.numbers.EFloat
-
- DivideToExponent(EDecimal, long, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Divides two arbitrary-precision decimal numbers, and gives a particular
exponent to the result.
- DivideToExponent(EDecimal, int, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
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.
- DivideToExponent(EDecimal, long, ERounding) - Method in class com.upokecenter.numbers.EDecimal
-
Divides two arbitrary-precision decimal numbers, and gives a particular
exponent to the result.
- DivideToExponent(EDecimal, int, ERounding) - Method in class com.upokecenter.numbers.EDecimal
-
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.
- DivideToExponent(EDecimal, EInteger, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Divides two arbitrary-precision decimal numbers, and gives a particular
exponent to the result.
- DivideToExponent(EDecimal, EInteger) - Method in class com.upokecenter.numbers.EDecimal
-
Divides two arbitrary-precision decimal numbers, and gives a particular
exponent to the result, using the half-even rounding mode.
- DivideToExponent(EDecimal, long) - Method in class com.upokecenter.numbers.EDecimal
-
Divides two arbitrary-precision decimal numbers, and gives a particular
exponent (expressed as a 64-bit signed integer) to the result, using
the half-even rounding mode.
- DivideToExponent(EDecimal, int) - Method in class com.upokecenter.numbers.EDecimal
-
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.
- DivideToExponent(EDecimal, EInteger, ERounding) - Method in class com.upokecenter.numbers.EDecimal
-
Divides two arbitrary-precision decimal numbers, and gives a particular
exponent to the result.
- DivideToExponent(EFloat, long, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Divides two arbitrary-precision binary floats, and gives a particular
exponent to the result.
- DivideToExponent(EFloat, long, ERounding) - Method in class com.upokecenter.numbers.EFloat
-
Divides two arbitrary-precision binary floats, and gives a particular
exponent to the result.
- DivideToExponent(EFloat, EInteger, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Divides two arbitrary-precision binary floats, and gives a particular
exponent to the result.
- DivideToExponent(EFloat, EInteger, ERounding) - Method in class com.upokecenter.numbers.EFloat
-
Divides two arbitrary-precision binary floats, and gives a particular
exponent to the result.
- DivideToIntegerNaturalScale(EDecimal) - Method in class com.upokecenter.numbers.EDecimal
-
Divides two arbitrary-precision decimal numbers, 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.
- DivideToIntegerNaturalScale(EDecimal, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
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.
- DivideToIntegerNaturalScale(EFloat) - Method in class com.upokecenter.numbers.EFloat
-
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.
- DivideToIntegerNaturalScale(EFloat, EContext) - Method in class com.upokecenter.numbers.EFloat
-
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.
- DivideToIntegerZeroScale(EDecimal, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Divides this object by another object, and returns the integer part of the
result, with the exponent set to 0.
- DivideToIntegerZeroScale(EFloat, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Divides this object by another object, and returns the integer part of the
result, with the exponent set to 0.
- DivideToSameExponent(EDecimal, ERounding) - Method in class com.upokecenter.numbers.EDecimal
-
Divides this object by another decimal number and returns a result with the
same exponent as this object (the dividend).
- DivideToSameExponent(EFloat, ERounding) - Method in class com.upokecenter.numbers.EFloat
-
Divides this object by another binary float and returns a result with the
same exponent as this object (the dividend).
- DivRem(EInteger) - Method in class com.upokecenter.numbers.EInteger
-
Divides this object by another arbitrary-precision integer and returns the
quotient and remainder.
- DivRemNaturalScale(EDecimal) - Method in class com.upokecenter.numbers.EDecimal
-
Calculates the quotient and remainder using the DivideToIntegerNaturalScale
and the formula in RemainderNaturalScale.
- DivRemNaturalScale(EDecimal, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Calculates the quotient and remainder using the DivideToIntegerNaturalScale
and the formula in RemainderNaturalScale.
- DivRemNaturalScale(EFloat) - Method in class com.upokecenter.numbers.EFloat
-
Calculates the quotient and remainder using the DivideToIntegerNaturalScale
and the formula in RemainderNaturalScale.
- DivRemNaturalScale(EFloat, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Calculates the quotient and remainder using the DivideToIntegerNaturalScale
and the formula in RemainderNaturalScale.
- EContext - Class in com.upokecenter.numbers
-
Contains parameters for controlling the precision, rounding, and exponent
range of arbitrary-precision numbers.
- EContext(int, ERounding, int, int, boolean) - Constructor for class com.upokecenter.numbers.EContext
-
Initializes a new instance of the
EContext
class.
- EDecimal - Class in com.upokecenter.numbers
-
Represents an arbitrary-precision decimal floating-point number.
- EFloat - Class in com.upokecenter.numbers
-
Represents an arbitrary-precision binary floating-point number.
- EInteger - Class in com.upokecenter.numbers
-
Represents an arbitrary-precision integer.
- equals(EDecimal) - Method in class com.upokecenter.numbers.EDecimal
-
Determines whether this object's mantissa (significand), exponent, and
properties are equal to those of another object.
- equals(Object) - Method in class com.upokecenter.numbers.EDecimal
-
Determines whether this object's mantissa (significand), exponent, and
properties are equal to those of another object and that other object
is an arbitrary-precision decimal number.
- equals(EFloat) - Method in class com.upokecenter.numbers.EFloat
-
Determines whether this object's mantissa (significand), exponent, and
properties are equal to those of another object.
- equals(Object) - Method in class com.upokecenter.numbers.EFloat
-
Determines whether this object's mantissa (significand), exponent, and
properties are equal to those of another object and that other object
is an arbitrary-precision binary float.
- equals(Object) - Method in class com.upokecenter.numbers.EInteger
-
Determines whether this object and another object are equal and have the
same type.
- equals(Object) - Method in class com.upokecenter.numbers.ERational
-
Determines whether this object's numerator, denominator, and properties
are equal to those of another object and that other object is an
arbitrary-precision rational number.
- equals(ERational) - Method in class com.upokecenter.numbers.ERational
-
Determines whether this object's numerator, denominator, and properties
are equal to those of another object.
- EqualsInternal(EFloat) - Method in class com.upokecenter.numbers.EFloat
-
Determines whether this object's mantissa (significand) and exponent
are equal to those of another object.
- ERational - Class in com.upokecenter.numbers
-
Represents an arbitrary-precision rational number.
- ERational(EInteger, EInteger) - Constructor for class com.upokecenter.numbers.ERational
-
- ERounding - Enum in com.upokecenter.numbers
-
Specifies the mode to use when "shortening" numbers that otherwise
can't fit a given number of digits, so that the shortened number
has about the same value.
- ETrapException - Exception in com.upokecenter.numbers
-
Exception thrown for arithmetic trap errors.
- ETrapException(int, EContext, Object) - Constructor for exception com.upokecenter.numbers.ETrapException
-
- Exp(EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Finds e (the base of natural logarithms) raised to the power of this
object's value.
- Exp(EContext) - Method in class com.upokecenter.numbers.EFloat
-
Finds e (the base of natural logarithms) raised to the power of this
object's value.
- ExponentWithinRange(EInteger) - Method in class com.upokecenter.numbers.EContext
-
Determines whether a number can have the given Exponent property under this
arithmetic context.
- FlagClamped - Static variable in class com.upokecenter.numbers.EContext
-
Signals that the exponent was adjusted to fit the exponent range.
- FlagDivideByZero - Static variable in class com.upokecenter.numbers.EContext
-
Signals a division of a nonzero number by zero.
- FlagInexact - Static variable in class com.upokecenter.numbers.EContext
-
Signals that the result was rounded to a different mathematical value, but
as close as possible to the original.
- FlagInvalid - Static variable in class com.upokecenter.numbers.EContext
-
Signals an invalid operation.
- FlagLostDigits - Static variable in class com.upokecenter.numbers.EContext
-
Signals that an operand was rounded to a different mathematical value before
an operation.
- FlagOverflow - Static variable in class com.upokecenter.numbers.EContext
-
Signals that the result is non-zero and the exponent is higher than the
highest exponent allowed.
- FlagRounded - Static variable in class com.upokecenter.numbers.EContext
-
Signals that the result was rounded to fit the precision; either the value
or the exponent may have changed from the original.
- FlagSubnormal - Static variable in class com.upokecenter.numbers.EContext
-
Signals that the result's exponent, before rounding, is lower than the
lowest exponent allowed.
- FlagUnderflow - Static variable in class com.upokecenter.numbers.EContext
-
Signals that the result's exponent, before rounding, is lower than the
lowest exponent allowed, and the result was rounded to a different
mathematical value, but as close as possible to the original.
- ForPrecision(int) - Static method in class com.upokecenter.numbers.EContext
-
Creates a new arithmetic context using the given maximum number of digits,
an unlimited exponent range, and the HalfUp rounding mode.
- ForPrecisionAndRounding(int, ERounding) - Static method in class com.upokecenter.numbers.EContext
-
Creates a new EContext object initialized with an unlimited exponent range,
and the given rounding mode and maximum precision.
- ForRounding(ERounding) - Static method in class com.upokecenter.numbers.EContext
-
Creates a new EContext object initialized with an unlimited precision, an
unlimited exponent range, and the given rounding mode.
- FromByte(byte) - Static method in class com.upokecenter.numbers.EDecimal
-
Converts a byte (from 0 to 255) to an arbitrary-precision decimal number.
- FromByte(byte) - Static method in class com.upokecenter.numbers.EFloat
-
Converts a byte (from 0 to 255) to an arbitrary-precision binary float.
- FromByte(byte) - Static method in class com.upokecenter.numbers.EInteger
-
Converts a byte (from 0 to 255) to an arbitrary-precision integer.
- FromByte(byte) - Static method in class com.upokecenter.numbers.ERational
-
Converts a byte (from 0 to 255) to an arbitrary-precision rational number.
- FromBytes(byte[], boolean) - Static method in class com.upokecenter.numbers.EInteger
-
Initializes an arbitrary-precision integer from an array of bytes.
- FromDouble(double) - Static method in class com.upokecenter.numbers.EDecimal
-
Creates a decimal number from a 64-bit binary floating-point number.
- FromDouble(double) - Static method in class com.upokecenter.numbers.EFloat
-
Creates a binary float from a 64-bit floating-point number.
- FromDouble(double) - Static method in class com.upokecenter.numbers.ERational
-
Converts a 64-bit floating-point number to a rational number.
- FromEDecimal(EDecimal) - Static method in class com.upokecenter.numbers.ERational
-
Converts an arbitrary-precision decimal number to a rational number.
- FromEFloat(EFloat) - Static method in class com.upokecenter.numbers.EDecimal
-
Creates a decimal number from an arbitrary-precision binary floating-point
number.
- FromEFloat(EFloat) - Static method in class com.upokecenter.numbers.ERational
-
Not documented yet.
- FromEInteger(EInteger) - Static method in class com.upokecenter.numbers.EDecimal
-
Converts an arbitrary-precision integer to an arbitrary precision decimal.
- FromEInteger(EInteger) - Static method in class com.upokecenter.numbers.EFloat
-
Converts an arbitrary-precision integer to the same value as a binary float.
- FromEInteger(EInteger) - Static method in class com.upokecenter.numbers.ERational
-
Converts an arbitrary-precision integer to a rational number.
- FromExtendedDecimal(EDecimal) - Static method in class com.upokecenter.numbers.ERational
-
- FromExtendedFloat(EFloat) - Static method in class com.upokecenter.numbers.EDecimal
-
- FromExtendedFloat(EFloat) - Static method in class com.upokecenter.numbers.ERational
-
- FromInt16(short) - Static method in class com.upokecenter.numbers.EDecimal
-
Converts a 16-bit signed integer to an arbitrary-precision decimal number.
- FromInt16(short) - Static method in class com.upokecenter.numbers.EFloat
-
Converts a 16-bit signed integer to an arbitrary-precision binary float.
- FromInt16(short) - Static method in class com.upokecenter.numbers.EInteger
-
Converts a 16-bit signed integer to an arbitrary-precision integer.
- FromInt16(short) - Static method in class com.upokecenter.numbers.ERational
-
Converts a 16-bit signed integer to an arbitrary-precision rational number.
- FromInt32(int) - Static method in class com.upokecenter.numbers.EDecimal
-
Creates a decimal number from a 32-bit signed integer.
- FromInt32(int) - Static method in class com.upokecenter.numbers.EFloat
-
Converts a 32-bit signed integer to an arbitrary-precision binary float.
- FromInt32(int) - Static method in class com.upokecenter.numbers.EInteger
-
Converts a 32-bit signed integer to an arbitrary-precision integer.
- FromInt32(int) - Static method in class com.upokecenter.numbers.ERational
-
Converts a 32-bit signed integer to an arbitrary-precision rational number.
- FromInt64(long) - Static method in class com.upokecenter.numbers.EDecimal
-
Creates a decimal number from a 64-bit signed integer.
- FromInt64(long) - Static method in class com.upokecenter.numbers.EFloat
-
Converts a 64-bit signed integer to an arbitrary-precision binary float.
- FromInt64(long) - Static method in class com.upokecenter.numbers.EInteger
-
Converts a 64-bit signed integer to an arbitrary-precision integer.
- FromInt64(long) - Static method in class com.upokecenter.numbers.ERational
-
Converts a 64-bit signed integer to an arbitrary-precision rational number.
- FromRadixString(String, int) - Static method in class com.upokecenter.numbers.EInteger
-
Not documented yet.
- FromRadixSubstring(String, int, int, int) - Static method in class com.upokecenter.numbers.EInteger
-
Converts a portion of a string to an arbitrary-precision integer in a given
radix.
- FromSingle(float) - Static method in class com.upokecenter.numbers.EDecimal
-
Creates a decimal number from a 32-bit binary floating-point number.
- FromSingle(float) - Static method in class com.upokecenter.numbers.EFloat
-
Creates a binary float from a 32-bit floating-point number.
- FromSingle(float) - Static method in class com.upokecenter.numbers.ERational
-
Converts a 32-bit floating-point number to a rational number.
- FromString(String) - Static method in class com.upokecenter.numbers.EDecimal
-
Creates a decimal number from a text string that represents a number.
- FromString(String, EContext) - Static method in class com.upokecenter.numbers.EDecimal
-
Creates a decimal number from a text string that represents a number.
- FromString(String, int, int) - Static method in class com.upokecenter.numbers.EDecimal
-
Creates a decimal number from a text string that represents a number.
- FromString(String, int, int, EContext) - Static method in class com.upokecenter.numbers.EDecimal
-
Creates a decimal number from a text string that represents a number.
- FromString(String, int, int, EContext) - Static method in class com.upokecenter.numbers.EFloat
-
Creates a binary float from a text string that represents a number.
- FromString(String) - Static method in class com.upokecenter.numbers.EFloat
-
Not documented yet.
- FromString(String, EContext) - Static method in class com.upokecenter.numbers.EFloat
-
Creates a binary float from a text string that represents a number.
- FromString(String, int, int) - Static method in class com.upokecenter.numbers.EFloat
-
Creates a binary float from a text string that represents a number.
- FromString(String) - Static method in class com.upokecenter.numbers.EInteger
-
Converts a string to an arbitrary-precision integer.
- FromString(String) - Static method in class com.upokecenter.numbers.ERational
-
Creates a rational number from a text string that represents a number.
- FromString(String, int, int) - Static method in class com.upokecenter.numbers.ERational
-
Creates a rational number from a text string that represents a
number.
- FromSubstring(String, int, int) - Static method in class com.upokecenter.numbers.EInteger
-
Converts a portion of a string to an arbitrary-precision integer.
- Gcd(EInteger) - Method in class com.upokecenter.numbers.EInteger
-
Returns the greatest common divisor of two integers.
- getAdjustExponent() - Method in class com.upokecenter.numbers.EContext
-
Gets a value indicating whether the EMax and EMin properties refer to the
number's Exponent property adjusted to the number's precision, or
just the number's Exponent property.
- getClampNormalExponents() - Method in class com.upokecenter.numbers.EContext
-
Gets a value indicating whether a converted number's Exponent property
will not be higher than EMax + 1 - Precision.
- getContext() - Method in exception com.upokecenter.numbers.ETrapException
-
Gets the arithmetic context used during the operation that triggered the
trap.
- getDenominator() - Method in class com.upokecenter.numbers.ERational
-
Gets this object's denominator.
- GetDigitCount() - Method in class com.upokecenter.numbers.EInteger
-
Not documented yet.
- getEMax() - Method in class com.upokecenter.numbers.EContext
-
Gets the highest exponent possible when a converted number is expressed in
scientific notation with one digit before the radix point.
- getEMin() - Method in class com.upokecenter.numbers.EContext
-
Gets the lowest exponent possible when a converted number is expressed in
scientific notation with one digit before the radix point.
- getError() - Method in exception com.upokecenter.numbers.ETrapException
-
Gets the flag that specifies the kind of error (EContext.FlagXXX).
- getExponent() - Method in class com.upokecenter.numbers.EDecimal
-
Gets this object's exponent.
- getExponent() - Method in class com.upokecenter.numbers.EFloat
-
Gets this object's exponent.
- getFlags() - Method in class com.upokecenter.numbers.EContext
-
Gets the flags that are set from converting numbers according to this
arithmetic context.
- getHasExponentRange() - Method in class com.upokecenter.numbers.EContext
-
Gets a value indicating whether this context defines a minimum and maximum
exponent.
- getHasFlags() - Method in class com.upokecenter.numbers.EContext
-
Gets a value indicating whether this context has a mutable Flags field.
- getHasMaxPrecision() - Method in class com.upokecenter.numbers.EContext
-
Gets a value indicating whether this context defines a maximum precision.
- GetLowBit() - Method in class com.upokecenter.numbers.EInteger
-
Gets the lowest set bit in this number's absolute value.
- GetLowBitAsEInteger() - Method in class com.upokecenter.numbers.EInteger
-
Gets the lowest set bit in this number's absolute value.
- getMantissa() - Method in class com.upokecenter.numbers.EDecimal
-
Gets this object's unscaled value.
- getMantissa() - Method in class com.upokecenter.numbers.EFloat
-
Gets this object's unscaled value.
- getNumerator() - Method in class com.upokecenter.numbers.ERational
-
Gets this object's numerator.
- getOne() - Static method in class com.upokecenter.numbers.EInteger
-
Gets the number 1 as an arbitrary-precision integer.
- getPrecision() - Method in class com.upokecenter.numbers.EContext
-
Gets the maximum length of a converted number in digits, ignoring the radix
point and exponent.
- getResult() - Method in exception com.upokecenter.numbers.ETrapException
-
Gets the defined result of the operation that caused the trap.
- getRounding() - Method in class com.upokecenter.numbers.EContext
-
Gets the desired rounding mode when converting numbers that can't be
represented in the given precision and exponent range.
- GetSignedBit(int) - Method in class com.upokecenter.numbers.EInteger
-
Returns whether a bit is set in the two's-complement form (see
"Forms of numbers") of this
object' s value.
- GetSignedBitLength() - Method in class com.upokecenter.numbers.EInteger
-
Finds the minimum number of bits needed to represent this object's
value, except for its sign.
- getTen() - Static method in class com.upokecenter.numbers.EInteger
-
Gets the number 10 as an arbitrary-precision integer.
- getTraps() - Method in class com.upokecenter.numbers.EContext
-
Gets the traps that are set for each flag in the context.
- GetUnsignedBit(int) - Method in class com.upokecenter.numbers.EInteger
-
Returns whether a bit is set in this number's absolute value.
- GetUnsignedBitLength() - Method in class com.upokecenter.numbers.EInteger
-
Finds the minimum number of bits needed to represent this number's
absolute value.
- GetUnsignedBitLengthAsEInteger() - Method in class com.upokecenter.numbers.EInteger
-
Finds the minimum number of bits needed to represent this number's
absolute value.
- getUnsignedMantissa() - Method in class com.upokecenter.numbers.EDecimal
-
Gets the absolute value of this object's unscaled value.
- getUnsignedMantissa() - Method in class com.upokecenter.numbers.EFloat
-
Gets the absolute value of this object's unscaled value.
- getUnsignedNumerator() - Method in class com.upokecenter.numbers.ERational
-
Gets this object's numerator with the sign removed.
- getZero() - Static method in class com.upokecenter.numbers.EInteger
-
Gets a value not documented yet.
- isEven() - Method in class com.upokecenter.numbers.EInteger
-
Gets a value indicating whether this value is even.
- isFinite() - Method in class com.upokecenter.numbers.EDecimal
-
Gets a value indicating whether this object is finite (not infinity or NaN).
- isFinite() - Method in class com.upokecenter.numbers.EFloat
-
Gets a value indicating whether this object is finite (not infinity or NaN).
- isFinite() - Method in class com.upokecenter.numbers.ERational
-
Gets a value indicating whether this object is finite (not infinity or NaN).
- IsInfinity() - Method in class com.upokecenter.numbers.EDecimal
-
Gets a value indicating whether this object is positive or negative
infinity.
- IsInfinity() - Method in class com.upokecenter.numbers.EFloat
-
Gets a value indicating whether this object is positive or negative
infinity.
- IsInfinity() - Method in class com.upokecenter.numbers.ERational
-
Gets a value indicating whether this object's value is infinity.
- IsNaN() - Method in class com.upokecenter.numbers.EDecimal
-
Gets a value indicating whether this object is not a number (NaN).
- IsNaN() - Method in class com.upokecenter.numbers.EFloat
-
Gets a value indicating whether this object is not a number (NaN).
- IsNaN() - Method in class com.upokecenter.numbers.ERational
-
Returns whether this object is a not-a-number value.
- isNegative() - Method in class com.upokecenter.numbers.EDecimal
-
Gets a value indicating whether this object is negative, including negative
zero.
- isNegative() - Method in class com.upokecenter.numbers.EFloat
-
Gets a value indicating whether this object is negative, including negative
zero.
- isNegative() - Method in class com.upokecenter.numbers.ERational
-
Gets a value indicating whether this object's value is negative (including
negative zero).
- IsNegativeInfinity() - Method in class com.upokecenter.numbers.EDecimal
-
Returns whether this object is negative infinity.
- IsNegativeInfinity() - Method in class com.upokecenter.numbers.EFloat
-
Returns whether this object is negative infinity.
- IsNegativeInfinity() - Method in class com.upokecenter.numbers.ERational
-
Returns whether this object is negative infinity.
- IsPositiveInfinity() - Method in class com.upokecenter.numbers.EDecimal
-
Returns whether this object is positive infinity.
- IsPositiveInfinity() - Method in class com.upokecenter.numbers.EFloat
-
Returns whether this object is positive infinity.
- IsPositiveInfinity() - Method in class com.upokecenter.numbers.ERational
-
Returns whether this object is positive infinity.
- isPowerOfTwo() - Method in class com.upokecenter.numbers.EInteger
-
Gets a value indicating whether this object's value is a power of two.
- isPrecisionInBits() - Method in class com.upokecenter.numbers.EContext
-
Gets a value indicating whether this context's Precision property is in
bits, rather than digits.
- IsQuietNaN() - Method in class com.upokecenter.numbers.EDecimal
-
Gets a value indicating whether this object is a quiet not-a-number value.
- IsQuietNaN() - Method in class com.upokecenter.numbers.EFloat
-
Gets a value indicating whether this object is a quiet not-a-number value.
- IsQuietNaN() - Method in class com.upokecenter.numbers.ERational
-
Returns whether this object is a quiet not-a-number value.
- IsSignalingNaN() - Method in class com.upokecenter.numbers.EDecimal
-
Gets a value indicating whether this object is a signaling not-a-number
value.
- IsSignalingNaN() - Method in class com.upokecenter.numbers.EFloat
-
Gets a value indicating whether this object is a signaling not-a-number
value.
- IsSignalingNaN() - Method in class com.upokecenter.numbers.ERational
-
Returns whether this object is a signaling not-a-number value (which causes
an error if the value is passed to any arithmetic operation in this
class).
- isSimplified() - Method in class com.upokecenter.numbers.EContext
-
Gets a value indicating whether to use a "simplified" arithmetic.
- isZero() - Method in class com.upokecenter.numbers.EDecimal
-
Gets a value indicating whether this object's value equals 0.
- isZero() - Method in class com.upokecenter.numbers.EFloat
-
Gets a value indicating whether this object's value equals 0.
- isZero() - Method in class com.upokecenter.numbers.EInteger
-
Gets a value indicating whether this value is 0.
- isZero() - Method in class com.upokecenter.numbers.ERational
-
Gets a value indicating whether this object's value equals 0.
- Max(EDecimal, EDecimal, EContext) - Static method in class com.upokecenter.numbers.EDecimal
-
Gets the greater value between two decimal numbers.
- Max(EDecimal, EDecimal) - Static method in class com.upokecenter.numbers.EDecimal
-
Gets the greater value between two decimal numbers.
- Max(EFloat, EFloat, EContext) - Static method in class com.upokecenter.numbers.EFloat
-
Gets the greater value between two binary floats.
- Max(EFloat, EFloat) - Static method in class com.upokecenter.numbers.EFloat
-
Gets the greater value between two binary floats.
- MaxMagnitude(EDecimal, EDecimal, EContext) - Static method in class com.upokecenter.numbers.EDecimal
-
Gets the greater value between two values, ignoring their signs.
- MaxMagnitude(EDecimal, EDecimal) - Static method in class com.upokecenter.numbers.EDecimal
-
Gets the greater value between two values, ignoring their signs.
- MaxMagnitude(EFloat, EFloat, EContext) - Static method in class com.upokecenter.numbers.EFloat
-
Gets the greater value between two values, ignoring their signs.
- MaxMagnitude(EFloat, EFloat) - Static method in class com.upokecenter.numbers.EFloat
-
Gets the greater value between two values, ignoring their signs.
- Min(EDecimal, EDecimal, EContext) - Static method in class com.upokecenter.numbers.EDecimal
-
Gets the lesser value between two decimal numbers.
- Min(EDecimal, EDecimal) - Static method in class com.upokecenter.numbers.EDecimal
-
Gets the lesser value between two decimal numbers.
- Min(EFloat, EFloat, EContext) - Static method in class com.upokecenter.numbers.EFloat
-
Gets the lesser value between two binary floats.
- Min(EFloat, EFloat) - Static method in class com.upokecenter.numbers.EFloat
-
Gets the lesser value between two binary floats.
- MinMagnitude(EDecimal, EDecimal, EContext) - Static method in class com.upokecenter.numbers.EDecimal
-
Gets the lesser value between two values, ignoring their signs.
- MinMagnitude(EDecimal, EDecimal) - Static method in class com.upokecenter.numbers.EDecimal
-
Gets the lesser value between two values, ignoring their signs.
- MinMagnitude(EFloat, EFloat, EContext) - Static method in class com.upokecenter.numbers.EFloat
-
Gets the lesser value between two values, ignoring their signs.
- MinMagnitude(EFloat, EFloat) - Static method in class com.upokecenter.numbers.EFloat
-
Gets the lesser value between two values, ignoring their signs.
- Mod(EInteger) - Method in class com.upokecenter.numbers.EInteger
-
Finds the modulus remainder that results when this instance is divided by
the value of an arbitrary-precision integer.
- ModPow(EInteger, EInteger) - Method in class com.upokecenter.numbers.EInteger
-
Calculates the remainder when an arbitrary-precision integer raised to a
certain power is divided by another arbitrary-precision integer.
- MovePointLeft(int) - Method in class com.upokecenter.numbers.EDecimal
-
Returns a number similar to this number but with the decimal point moved to
the left.
- MovePointLeft(int, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Returns a number similar to this number but with the decimal point moved to
the left.
- MovePointLeft(EInteger) - Method in class com.upokecenter.numbers.EDecimal
-
Returns a number similar to this number but with the decimal point moved to
the left.
- MovePointLeft(EInteger, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Returns a number similar to this number but with the decimal point moved to
the left.
- MovePointLeft(int) - Method in class com.upokecenter.numbers.EFloat
-
Returns a number similar to this number but with the radix point moved to
the left.
- MovePointLeft(int, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Returns a number similar to this number but with the radix point moved to
the left.
- MovePointLeft(EInteger) - Method in class com.upokecenter.numbers.EFloat
-
Returns a number similar to this number but with the radix point moved to
the left.
- MovePointLeft(EInteger, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Returns a number similar to this number but with the radix point moved to
the left.
- MovePointRight(int) - Method in class com.upokecenter.numbers.EDecimal
-
Returns a number similar to this number but with the decimal point moved to
the right.
- MovePointRight(int, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Returns a number similar to this number but with the decimal point moved to
the right.
- MovePointRight(EInteger) - Method in class com.upokecenter.numbers.EDecimal
-
Returns a number similar to this number but with the decimal point moved to
the right.
- MovePointRight(EInteger, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Returns a number similar to this number but with the decimal point moved to
the right.
- MovePointRight(int) - Method in class com.upokecenter.numbers.EFloat
-
Returns a number similar to this number but with the radix point moved to
the right.
- MovePointRight(int, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Returns a number similar to this number but with the radix point moved to
the right.
- MovePointRight(EInteger) - Method in class com.upokecenter.numbers.EFloat
-
Returns a number similar to this number but with the radix point moved to
the right.
- MovePointRight(EInteger, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Returns a number similar to this number but with the radix point moved to
the right.
- Multiply(EDecimal) - Method in class com.upokecenter.numbers.EDecimal
-
Multiplies two decimal numbers.
- Multiply(EDecimal, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Multiplies two decimal numbers.
- Multiply(EFloat) - Method in class com.upokecenter.numbers.EFloat
-
Multiplies two binary floats.
- Multiply(EFloat, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Multiplies two binary floats.
- Multiply(EInteger) - Method in class com.upokecenter.numbers.EInteger
-
Multiplies this instance by the value of an arbitrary-precision integer
object.
- Multiply(ERational) - Method in class com.upokecenter.numbers.ERational
-
Multiplies this instance by the value of an arbitrary-precision rational
number.
- MultiplyAndAdd(EDecimal, EDecimal) - Method in class com.upokecenter.numbers.EDecimal
-
Multiplies by one decimal number, and then adds another decimal number.
- MultiplyAndAdd(EDecimal, EDecimal, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Multiplies by one value, and then adds another value.
- MultiplyAndAdd(EFloat, EFloat) - Method in class com.upokecenter.numbers.EFloat
-
Multiplies by one binary float, and then adds another binary float.
- MultiplyAndAdd(EFloat, EFloat, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Multiplies by one value, and then adds another value.
- MultiplyAndSubtract(EDecimal, EDecimal, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Multiplies by one value, and then subtracts another value.
- MultiplyAndSubtract(EFloat, EFloat, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Multiplies by one value, and then subtracts another value.
- PI(EContext) - Static method in class com.upokecenter.numbers.EDecimal
-
Finds the constant π, the circumference of a circle divided by its
diameter.
- PI(EContext) - Static method in class com.upokecenter.numbers.EFloat
-
Finds the constant π, the circumference of a circle divided by its
diameter.
- Plus(EContext) - Method in class com.upokecenter.numbers.EDecimal
-
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.
- Plus(EContext) - Method in class com.upokecenter.numbers.EFloat
-
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.
- PositiveInfinity - Static variable in class com.upokecenter.numbers.EDecimal
-
Positive infinity, greater than any other number.
- PositiveInfinity - Static variable in class com.upokecenter.numbers.EFloat
-
Positive infinity, greater than any other number.
- PositiveInfinity - Static variable in class com.upokecenter.numbers.ERational
-
Positive infinity, greater than any other number.
- Pow(EDecimal, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Raises this object's value to the given exponent.
- Pow(int, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Raises this object's value to the given exponent.
- Pow(int) - Method in class com.upokecenter.numbers.EDecimal
-
Raises this object's value to the given exponent.
- Pow(EFloat, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Raises this object's value to the given exponent.
- Pow(int, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Raises this object's value to the given exponent.
- Pow(int) - Method in class com.upokecenter.numbers.EFloat
-
Raises this object's value to the given exponent.
- Pow(int) - Method in class com.upokecenter.numbers.EInteger
-
Raises an arbitrary-precision integer to a power.
- PowBigIntVar(EInteger) - Method in class com.upokecenter.numbers.EInteger
-
Raises an arbitrary-precision integer to a power, which is given as another
arbitrary-precision integer.
- Precision() - Method in class com.upokecenter.numbers.EDecimal
-
Finds the number of digits in this number's mantissa (significand).
- Precision() - Method in class com.upokecenter.numbers.EFloat
-
Finds the number of digits in this number's mantissa (significand).
- Reduce(EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Removes trailing zeros from this object's mantissa (significand).
- Reduce(EContext) - Method in class com.upokecenter.numbers.EFloat
-
Removes trailing zeros from this object's mantissa (significand).
- Remainder(EDecimal, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Finds the remainder that results when dividing two arbitrary-precision
decimal numbers.
- Remainder(EFloat, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Finds the remainder that results when dividing two arbitrary-precision
binary floats.
- Remainder(EInteger) - Method in class com.upokecenter.numbers.EInteger
-
Finds the remainder that results when this instance is divided by the value
of an arbitrary-precision integer.
- Remainder(ERational) - Method in class com.upokecenter.numbers.ERational
-
Finds the remainder that results when this instance is divided by the value
of an arbitrary-precision rational number.
- RemainderNaturalScale(EDecimal) - Method in class com.upokecenter.numbers.EDecimal
-
Calculates the remainder of a number by the formula "this" - (("this" /
"divisor") * "divisor")
- RemainderNaturalScale(EDecimal, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Calculates the remainder of a number by the formula "this" - (("this" /
"divisor") * "divisor").
- RemainderNaturalScale(EFloat) - Method in class com.upokecenter.numbers.EFloat
-
Calculates the remainder of a number by the formula "this" - (("this" /
"divisor") * "divisor")
- RemainderNaturalScale(EFloat, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Calculates the remainder of a number by the formula "this" - (("this" /
"divisor") * "divisor").
- RemainderNear(EDecimal, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
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.
- RemainderNear(EFloat, EContext) - Method in class com.upokecenter.numbers.EFloat
-
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.
- RoundToExponent(EInteger, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Returns a decimal number with the same value as this object but rounded to a
new exponent if necessary.
- RoundToExponent(EInteger) - Method in class com.upokecenter.numbers.EDecimal
-
Returns a decimal number with the same value as this object but rounded to a
new exponent if necessary, using the HalfEven rounding mode.
- RoundToExponent(EInteger, ERounding) - Method in class com.upokecenter.numbers.EDecimal
-
Returns a decimal number with the same value as this object but rounded to a
new exponent if necessary, using the given rounding mode.
- RoundToExponent(int) - Method in class com.upokecenter.numbers.EDecimal
-
Returns a decimal number with the same value as this object but rounded to a
new exponent if necessary, using the HalfEven rounding mode.
- RoundToExponent(int, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Returns a decimal number with the same value as this object but rounded to a
new exponent if necessary.
- RoundToExponent(int, ERounding) - Method in class com.upokecenter.numbers.EDecimal
-
Returns a decimal number with the same value as this object but rounded to a
new exponent if necessary.
- RoundToExponent(EInteger, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Returns a binary float with the same value as this object but rounded to a
new exponent if necessary.
- RoundToExponent(int, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Returns a binary float with the same value as this object but rounded to a
new exponent if necessary.
- RoundToExponentExact(EInteger, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
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.
- RoundToExponentExact(int, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
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.
- RoundToExponentExact(int, ERounding) - Method in class com.upokecenter.numbers.EDecimal
-
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.
- RoundToExponentExact(EInteger, EContext) - Method in class com.upokecenter.numbers.EFloat
-
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.
- RoundToExponentExact(EInteger, ERounding) - Method in class com.upokecenter.numbers.EFloat
-
Returns a binary number with the same value as this object but rounded to
the given exponent.
- RoundToExponentExact(int, EContext) - Method in class com.upokecenter.numbers.EFloat
-
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.
- RoundToIntegerExact(EContext) - Method in class com.upokecenter.numbers.EDecimal
-
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.
- RoundToIntegerExact(EContext) - Method in class com.upokecenter.numbers.EFloat
-
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.
- RoundToIntegerNoRoundedFlag(EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Returns a decimal number with the same value as this object but rounded to
an integer, without adding the FlagInexact or
FlagRounded flags.
- RoundToIntegerNoRoundedFlag(EContext) - Method in class com.upokecenter.numbers.EFloat
-
Returns a binary float with the same value as this object but rounded to an
integer, without adding the FlagInexact or FlagRounded
flags.
- RoundToIntegralExact(EContext) - Method in class com.upokecenter.numbers.EDecimal
-
- RoundToIntegralExact(EContext) - Method in class com.upokecenter.numbers.EFloat
-
- RoundToIntegralNoRoundedFlag(EContext) - Method in class com.upokecenter.numbers.EDecimal
-
- RoundToIntegralNoRoundedFlag(EContext) - Method in class com.upokecenter.numbers.EFloat
-
- RoundToPrecision(EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Rounds this object's value to a given precision, using the given
rounding mode and range of exponent.
- RoundToPrecision(EContext) - Method in class com.upokecenter.numbers.EFloat
-
Rounds this object's value to a given precision, using the given
rounding mode and range of exponent.
- ScaleByPowerOfTen(int) - Method in class com.upokecenter.numbers.EDecimal
-
Returns a number similar to this number but with the scale adjusted.
- ScaleByPowerOfTen(int, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Returns a number similar to this number but with the scale adjusted.
- ScaleByPowerOfTen(EInteger) - Method in class com.upokecenter.numbers.EDecimal
-
Returns a number similar to this number but with the scale adjusted.
- ScaleByPowerOfTen(EInteger, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Returns a number similar to this number but with its scale adjusted.
- ScaleByPowerOfTwo(int) - Method in class com.upokecenter.numbers.EFloat
-
Returns a number similar to this number but with the scale adjusted.
- ScaleByPowerOfTwo(int, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Returns a number similar to this number but with the scale adjusted.
- ScaleByPowerOfTwo(EInteger) - Method in class com.upokecenter.numbers.EFloat
-
Returns a number similar to this number but with the scale adjusted.
- ScaleByPowerOfTwo(EInteger, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Returns a number similar to this number but with its scale adjusted.
- setFlags(int) - Method in class com.upokecenter.numbers.EContext
-
- ShiftLeft(int) - Method in class com.upokecenter.numbers.EInteger
-
Returns an arbitrary-precision integer with the bits shifted to the left by
a number of bits.
- ShiftRight(int) - Method in class com.upokecenter.numbers.EInteger
-
Returns an arbitrary-precision integer with the bits shifted to the right.
- SignalingNaN - Static variable in class com.upokecenter.numbers.EDecimal
-
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 decimal.
- SignalingNaN - Static variable in class com.upokecenter.numbers.EFloat
-
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.
- SignalingNaN - Static variable in class com.upokecenter.numbers.ERational
-
A signaling not-a-number value.
- signum() - Method in class com.upokecenter.numbers.EDecimal
-
Gets this value's sign: -1 if negative; 1 if positive; 0 if zero.
- signum() - Method in class com.upokecenter.numbers.EFloat
-
Gets this value's sign: -1 if negative; 1 if positive; 0 if zero.
- signum() - Method in class com.upokecenter.numbers.EInteger
-
Gets the sign of this object's value.
- signum() - Method in class com.upokecenter.numbers.ERational
-
Gets the sign of this rational number.
- Sqrt(EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Finds the square root of this object's value.
- Sqrt(EContext) - Method in class com.upokecenter.numbers.EFloat
-
Finds the square root of this object's value.
- Sqrt() - Method in class com.upokecenter.numbers.EInteger
-
Finds the square root of this instance's value, rounded down.
- SqrtRem() - Method in class com.upokecenter.numbers.EInteger
-
Calculates the square root and the remainder.
- SquareRoot(EContext) - Method in class com.upokecenter.numbers.EDecimal
-
- SquareRoot(EContext) - Method in class com.upokecenter.numbers.EFloat
-
- Subtract(EDecimal) - Method in class com.upokecenter.numbers.EDecimal
-
Subtracts an arbitrary-precision decimal number from this instance and
returns the result.
- Subtract(EDecimal, EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Subtracts an arbitrary-precision decimal number from this instance.
- Subtract(EFloat) - Method in class com.upokecenter.numbers.EFloat
-
Subtracts an arbitrary-precision binary float from this instance and returns
the result.
- Subtract(EFloat, EContext) - Method in class com.upokecenter.numbers.EFloat
-
Subtracts an arbitrary-precision binary float from this instance.
- Subtract(EInteger) - Method in class com.upokecenter.numbers.EInteger
-
Subtracts an arbitrary-precision integer from this arbitrary-precision
integer.
- Subtract(ERational) - Method in class com.upokecenter.numbers.ERational
-
Subtracts an arbitrary-precision rational number from this instance.
- Ten - Static variable in class com.upokecenter.numbers.EDecimal
-
Represents the number 10.
- Ten - Static variable in class com.upokecenter.numbers.EFloat
-
Represents the number 10.
- Ten - Static variable in class com.upokecenter.numbers.ERational
-
The rational number ten.
- ToByteChecked() - Method in class com.upokecenter.numbers.EDecimal
-
Converts this number's value to a byte (from 0 to 255) if it can fit in a
byte (from 0 to 255) after truncating to an integer.
- ToByteChecked() - Method in class com.upokecenter.numbers.EFloat
-
Converts this number's value to a byte (from 0 to 255) if it can fit in a
byte (from 0 to 255) after truncating to an integer.
- ToByteChecked() - Method in class com.upokecenter.numbers.EInteger
-
Converts this number's value to a byte (from 0 to 255) if it can fit in a
byte (from 0 to 255).
- ToByteChecked() - Method in class com.upokecenter.numbers.ERational
-
Converts this number's value to a byte (from 0 to 255) if it can fit in a
byte (from 0 to 255) after truncating to an integer.
- ToByteIfExact() - Method in class com.upokecenter.numbers.EDecimal
-
Converts this number's value to a byte (from 0 to 255) if it can fit in a
byte (from 0 to 255) without rounding to a different numerical value.
- ToByteIfExact() - Method in class com.upokecenter.numbers.EFloat
-
Converts this number's value to a byte (from 0 to 255) if it can fit in a
byte (from 0 to 255) without rounding to a different numerical value.
- ToByteIfExact() - Method in class com.upokecenter.numbers.ERational
-
Converts this number's value to a byte (from 0 to 255) if it can fit in a
byte (from 0 to 255) without rounding to a different numerical value.
- ToBytes(boolean) - Method in class com.upokecenter.numbers.EInteger
-
Returns a byte array of this integer's value.
- ToByteUnchecked() - Method in class com.upokecenter.numbers.EDecimal
-
Truncates this number's value to an integer and returns the
least-significant bits of its two's-complement form as a byte (from 0
to 255).
- ToByteUnchecked() - Method in class com.upokecenter.numbers.EFloat
-
Truncates this number's value to an integer and returns the
least-significant bits of its two's-complement form as a byte (from 0
to 255).
- ToByteUnchecked() - Method in class com.upokecenter.numbers.EInteger
-
Converts this number to a byte (from 0 to 255), returning the
least-significant bits of this number's two's-complement form.
- ToByteUnchecked() - Method in class com.upokecenter.numbers.ERational
-
Truncates this number's value to an integer and returns the
least-significant bits of its two's-complement form as a byte (from 0
to 255).
- ToDouble() - Method in class com.upokecenter.numbers.EDecimal
-
Converts this value to its closest equivalent as a 64-bit floating-point
number.
- ToDouble() - Method in class com.upokecenter.numbers.EFloat
-
Not documented yet.
- ToDouble() - Method in class com.upokecenter.numbers.ERational
-
Converts this value to a 64-bit floating-point number.
- ToEDecimal() - Method in class com.upokecenter.numbers.EFloat
-
Converts this value to an arbitrary-precision decimal number.
- ToEDecimal() - Method in class com.upokecenter.numbers.ERational
-
Converts this rational number to a decimal number.
- ToEDecimal(EContext) - Method in class com.upokecenter.numbers.ERational
-
Converts this rational number to a decimal number and rounds the result to
the given precision.
- ToEDecimalExactIfPossible(EContext) - Method in class com.upokecenter.numbers.ERational
-
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.
- ToEFloat() - Method in class com.upokecenter.numbers.EDecimal
-
Creates a binary floating-point number from this object's value.
- ToEFloat(EContext) - Method in class com.upokecenter.numbers.EDecimal
-
Not documented yet.
- ToEFloat() - Method in class com.upokecenter.numbers.ERational
-
Converts this rational number to a binary float.
- ToEFloat(EContext) - Method in class com.upokecenter.numbers.ERational
-
Converts this rational number to a binary float and rounds that result to
the given precision.
- ToEFloatExactIfPossible(EContext) - Method in class com.upokecenter.numbers.ERational
-
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.
- ToEInteger() - Method in class com.upokecenter.numbers.EDecimal
-
Converts this value to an arbitrary-precision integer.
- ToEInteger() - Method in class com.upokecenter.numbers.EFloat
-
Converts this value to an arbitrary-precision integer.
- ToEInteger() - Method in class com.upokecenter.numbers.ERational
-
Converts this value to an arbitrary-precision integer.
- ToEIntegerExact() - Method in class com.upokecenter.numbers.EDecimal
-
- ToEIntegerExact() - Method in class com.upokecenter.numbers.EFloat
-
- ToEIntegerExact() - Method in class com.upokecenter.numbers.ERational
-
- ToEIntegerIfExact() - Method in class com.upokecenter.numbers.EDecimal
-
Converts this value to an arbitrary-precision integer, checking whether the
fractional part of the integer would be lost.
- ToEIntegerIfExact() - Method in class com.upokecenter.numbers.EFloat
-
Converts this value to an arbitrary-precision integer, checking whether the
value contains a fractional part.
- ToEIntegerIfExact() - Method in class com.upokecenter.numbers.ERational
-
Converts this value to an arbitrary-precision integer, checking whether the
value is an exact integer.
- ToEngineeringString() - Method in class com.upokecenter.numbers.EDecimal
-
Same as toString(), except that when an exponent is used it will be a
multiple of 3.
- ToEngineeringString() - Method in class com.upokecenter.numbers.EFloat
-
Converts this value to an arbitrary-precision decimal number, then returns
the value of that decimal's ToEngineeringString method.
- ToExtendedDecimal() - Method in class com.upokecenter.numbers.EFloat
-
- ToExtendedDecimal() - Method in class com.upokecenter.numbers.ERational
-
- ToExtendedDecimal(EContext) - Method in class com.upokecenter.numbers.ERational
-
- ToExtendedDecimalExactIfPossible(EContext) - Method in class com.upokecenter.numbers.ERational
-
- ToExtendedFloat() - Method in class com.upokecenter.numbers.EDecimal
-
- ToExtendedFloat() - Method in class com.upokecenter.numbers.ERational
-
- ToExtendedFloat(EContext) - Method in class com.upokecenter.numbers.ERational
-
- ToExtendedFloatExactIfPossible(EContext) - Method in class com.upokecenter.numbers.ERational
-
- ToInt16Checked() - Method in class com.upokecenter.numbers.EDecimal
-
Converts this number's value to a 16-bit signed integer if it can fit in a
16-bit signed integer after truncating to an integer.
- ToInt16Checked() - Method in class com.upokecenter.numbers.EFloat
-
Converts this number's value to a 16-bit signed integer if it can fit in a
16-bit signed integer after truncating to an integer.
- ToInt16Checked() - Method in class com.upokecenter.numbers.EInteger
-
Converts this number's value to a 16-bit signed integer if it can fit in a
16-bit signed integer.
- ToInt16Checked() - Method in class com.upokecenter.numbers.ERational
-
Converts this number's value to a 16-bit signed integer if it can fit in a
16-bit signed integer after truncating to an integer.
- ToInt16IfExact() - Method in class com.upokecenter.numbers.EDecimal
-
Converts this number's value to a 16-bit signed integer if it can fit in a
16-bit signed integer without rounding to a different numerical
value.
- ToInt16IfExact() - Method in class com.upokecenter.numbers.EFloat
-
Converts this number's value to a 16-bit signed integer if it can fit in a
16-bit signed integer without rounding to a different numerical
value.
- ToInt16IfExact() - Method in class com.upokecenter.numbers.ERational
-
Converts this number's value to a 16-bit signed integer if it can fit in a
16-bit signed integer without rounding to a different numerical
value.
- ToInt16Unchecked() - Method in class com.upokecenter.numbers.EDecimal
-
Truncates this number's value to an integer and returns the
least-significant bits of its two's-complement form as a 16-bit
signed integer.
- ToInt16Unchecked() - Method in class com.upokecenter.numbers.EFloat
-
Truncates this number's value to an integer and returns the
least-significant bits of its two's-complement form as a 16-bit
signed integer.
- ToInt16Unchecked() - Method in class com.upokecenter.numbers.EInteger
-
Converts this number to a 16-bit signed integer, returning the
least-significant bits of this number's two's-complement form.
- ToInt16Unchecked() - Method in class com.upokecenter.numbers.ERational
-
Truncates this number's value to an integer and returns the
least-significant bits of its two's-complement form as a 16-bit
signed integer.
- ToInt32Checked() - Method in class com.upokecenter.numbers.EDecimal
-
Converts this number's value to a 32-bit signed integer if it can fit in a
32-bit signed integer after truncating to an integer.
- ToInt32Checked() - Method in class com.upokecenter.numbers.EFloat
-
Converts this number's value to a 32-bit signed integer if it can fit in a
32-bit signed integer after truncating to an integer.
- ToInt32Checked() - Method in class com.upokecenter.numbers.EInteger
-
Converts this object's value to a 32-bit signed integer, throwing an
exception if it can't fit.
- ToInt32Checked() - Method in class com.upokecenter.numbers.ERational
-
Converts this number's value to a 32-bit signed integer if it can fit in a
32-bit signed integer after truncating to an integer.
- ToInt32IfExact() - Method in class com.upokecenter.numbers.EDecimal
-
Converts this number's value to a 32-bit signed integer if it can fit in a
32-bit signed integer without rounding to a different numerical
value.
- ToInt32IfExact() - Method in class com.upokecenter.numbers.EFloat
-
Converts this number's value to a 32-bit signed integer if it can fit in a
32-bit signed integer without rounding to a different numerical
value.
- ToInt32IfExact() - Method in class com.upokecenter.numbers.ERational
-
Converts this number's value to a 32-bit signed integer if it can fit in a
32-bit signed integer without rounding to a different numerical
value.
- ToInt32Unchecked() - Method in class com.upokecenter.numbers.EDecimal
-
Truncates this number's value to an integer and returns the
least-significant bits of its two's-complement form as a 32-bit
signed integer.
- ToInt32Unchecked() - Method in class com.upokecenter.numbers.EFloat
-
Truncates this number's value to an integer and returns the
least-significant bits of its two's-complement form as a 32-bit
signed integer.
- ToInt32Unchecked() - Method in class com.upokecenter.numbers.EInteger
-
Converts this object's value to a 32-bit signed integer.
- ToInt32Unchecked() - Method in class com.upokecenter.numbers.ERational
-
Truncates this number's value to an integer and returns the
least-significant bits of its two's-complement form as a 32-bit
signed integer.
- ToInt64Checked() - Method in class com.upokecenter.numbers.EDecimal
-
Converts this number's value to a 64-bit signed integer if it can fit in a
64-bit signed integer after truncating to an integer.
- ToInt64Checked() - Method in class com.upokecenter.numbers.EFloat
-
Converts this number's value to a 64-bit signed integer if it can fit in a
64-bit signed integer after truncating to an integer.
- ToInt64Checked() - Method in class com.upokecenter.numbers.EInteger
-
Converts this object's value to a 64-bit signed integer, throwing an
exception if it can't fit.
- ToInt64Checked() - Method in class com.upokecenter.numbers.ERational
-
Converts this number's value to a 64-bit signed integer if it can fit in a
64-bit signed integer after truncating to an integer.
- ToInt64IfExact() - Method in class com.upokecenter.numbers.EDecimal
-
Converts this number's value to a 64-bit signed integer if it can fit in a
64-bit signed integer without rounding to a different numerical
value.
- ToInt64IfExact() - Method in class com.upokecenter.numbers.EFloat
-
Converts this number's value to a 64-bit signed integer if it can fit in a
64-bit signed integer without rounding to a different numerical
value.
- ToInt64IfExact() - Method in class com.upokecenter.numbers.ERational
-
Converts this number's value to a 64-bit signed integer if it can fit in a
64-bit signed integer without rounding to a different numerical
value.
- ToInt64Unchecked() - Method in class com.upokecenter.numbers.EDecimal
-
Truncates this number's value to an integer and returns the
least-significant bits of its two's-complement form as a 64-bit
signed integer.
- ToInt64Unchecked() - Method in class com.upokecenter.numbers.EFloat
-
Truncates this number's value to an integer and returns the
least-significant bits of its two's-complement form as a 64-bit
signed integer.
- ToInt64Unchecked() - Method in class com.upokecenter.numbers.EInteger
-
Converts this object's value to a 64-bit signed integer.
- ToInt64Unchecked() - Method in class com.upokecenter.numbers.ERational
-
Truncates this number's value to an integer and returns the
least-significant bits of its two's-complement form as a 64-bit
signed integer.
- ToPlainString() - Method in class com.upokecenter.numbers.EDecimal
-
Converts this value to a string, but without using exponential notation.
- ToPlainString() - Method in class com.upokecenter.numbers.EFloat
-
Converts this value to a string, but without exponential notation.
- ToRadixString(int) - Method in class com.upokecenter.numbers.EInteger
-
Generates a string representing the value of this object, in the given
radix.
- ToShortestString(EContext) - Method in class com.upokecenter.numbers.EFloat
-
Returns a string representation of this number's value after rounding to the
given precision (using the given arithmetic context).
- ToSingle() - Method in class com.upokecenter.numbers.EDecimal
-
Converts this value to its closest equivalent as a 32-bit floating-point
number.
- ToSingle() - Method in class com.upokecenter.numbers.EFloat
-
Converts this value to its closest equivalent as 32-bit floating-point
number.
- ToSingle() - Method in class com.upokecenter.numbers.ERational
-
Converts this value to a 32-bit floating-point number.
- toString() - Method in class com.upokecenter.numbers.EContext
-
Gets a string representation of this object.
- toString() - Method in class com.upokecenter.numbers.EDecimal
-
Converts this value to a string.
- toString() - Method in class com.upokecenter.numbers.EFloat
-
Converts this number's value to a text string.
- toString() - Method in class com.upokecenter.numbers.EInteger
-
Converts this object to a text string in base 10.
- toString() - Method in class com.upokecenter.numbers.ERational
-
Converts this object to a text string.