| Modifier and Type | Method and Description |
|---|---|
EInteger |
EInteger.Abs()
Returns the absolute value of this object's value.
|
EInteger |
EInteger.Add(EInteger bigintAugend)
Adds this object and another object.
|
EInteger |
EInteger.Divide(EInteger bigintDivisor)
Divides this instance by the value of an arbitrary-precision integer.
|
EInteger[] |
EInteger.DivRem(EInteger divisor)
Divides this object by another arbitrary-precision integer and returns the
quotient and remainder.
|
static EInteger |
EInteger.FromByte(byte inputByte)
Converts a byte (from 0 to 255) to an arbitrary-precision integer.
|
static EInteger |
EInteger.FromBytes(byte[] bytes,
boolean littleEndian)
Initializes an arbitrary-precision integer from an array of bytes.
|
static EInteger |
EInteger.FromInt16(short inputInt16)
Converts a 16-bit signed integer to an arbitrary-precision integer.
|
static EInteger |
EInteger.FromInt32(int intValue)
Converts a 32-bit signed integer to an arbitrary-precision integer.
|
static EInteger |
EInteger.FromInt64(long longerValue)
Converts a 64-bit signed integer to an arbitrary-precision integer.
|
static EInteger |
EInteger.FromRadixString(String str,
int radix)
Not documented yet.
|
static EInteger |
EInteger.FromRadixSubstring(String str,
int radix,
int index,
int endIndex)
Converts a portion of a string to an arbitrary-precision integer in a given
radix.
|
static EInteger |
EInteger.FromString(String str)
Converts a string to an arbitrary-precision integer.
|
static EInteger |
EInteger.FromSubstring(String str,
int index,
int endIndex)
Converts a portion of a string to an arbitrary-precision integer.
|
EInteger |
EInteger.Gcd(EInteger bigintSecond)
Returns the greatest common divisor of two integers.
|
EInteger |
ERational.getDenominator()
Gets this object's denominator.
|
EInteger |
EContext.getEMax()
Gets the highest exponent possible when a converted number is expressed in
scientific notation with one digit before the radix point.
|
EInteger |
EContext.getEMin()
Gets the lowest exponent possible when a converted number is expressed in
scientific notation with one digit before the radix point.
|
EInteger |
EFloat.getExponent()
Gets this object's exponent.
|
EInteger |
EDecimal.getExponent()
Gets this object's exponent.
|
EInteger |
EInteger.GetLowBitAsEInteger()
Gets the lowest set bit in this number's absolute value.
|
EInteger |
EFloat.getMantissa()
Gets this object's unscaled value.
|
EInteger |
EDecimal.getMantissa()
Gets this object's unscaled value.
|
EInteger |
ERational.getNumerator()
Gets this object's numerator.
|
static EInteger |
EInteger.getOne()
Gets the number 1 as an arbitrary-precision integer.
|
EInteger |
EContext.getPrecision()
Gets the maximum length of a converted number in digits, ignoring the radix
point and exponent.
|
static EInteger |
EInteger.getTen()
Gets the number 10 as an arbitrary-precision integer.
|
EInteger |
EInteger.GetUnsignedBitLengthAsEInteger()
Finds the minimum number of bits needed to represent this number's
absolute value.
|
EInteger |
EFloat.getUnsignedMantissa()
Gets the absolute value of this object's unscaled value.
|
EInteger |
EDecimal.getUnsignedMantissa()
Gets the absolute value of this object's unscaled value.
|
EInteger |
ERational.getUnsignedNumerator()
Gets this object's numerator with the sign removed.
|
static EInteger |
EInteger.getZero()
Gets a value not documented yet.
|
EInteger |
EInteger.Mod(EInteger divisor)
Finds the modulus remainder that results when this instance is divided by
the value of an arbitrary-precision integer.
|
EInteger |
EInteger.ModPow(EInteger pow,
EInteger mod)
Calculates the remainder when an arbitrary-precision integer raised to a
certain power is divided by another arbitrary-precision integer.
|
EInteger |
EInteger.Multiply(EInteger bigintMult)
Multiplies this instance by the value of an arbitrary-precision integer
object.
|
EInteger |
EInteger.Negate()
Gets the value of this object with the sign reversed.
|
EInteger |
EInteger.Pow(int powerSmall)
Raises an arbitrary-precision integer to a power.
|
EInteger |
EInteger.PowBigIntVar(EInteger power)
Raises an arbitrary-precision integer to a power, which is given as another
arbitrary-precision integer.
|
EInteger |
EFloat.Precision()
Finds the number of digits in this number's mantissa (significand).
|
EInteger |
EDecimal.Precision()
Finds the number of digits in this number's mantissa (significand).
|
EInteger |
EInteger.Remainder(EInteger divisor)
Finds the remainder that results when this instance is divided by the value
of an arbitrary-precision integer.
|
EInteger |
EInteger.ShiftLeft(int numberBits)
Returns an arbitrary-precision integer with the bits shifted to the left by
a number of bits.
|
EInteger |
EInteger.ShiftRight(int numberBits)
Returns an arbitrary-precision integer with the bits shifted to the right.
|
EInteger |
EInteger.Sqrt()
Finds the square root of this instance's value, rounded down.
|
EInteger[] |
EInteger.SqrtRem()
Calculates the square root and the remainder.
|
EInteger |
EInteger.Subtract(EInteger subtrahend)
Subtracts an arbitrary-precision integer from this arbitrary-precision
integer.
|
EInteger |
EFloat.ToEInteger()
Converts this value to an arbitrary-precision integer.
|
EInteger |
ERational.ToEInteger()
Converts this value to an arbitrary-precision integer.
|
EInteger |
EDecimal.ToEInteger()
Converts this value to an arbitrary-precision integer.
|
EInteger |
EFloat.ToEIntegerExact()
Deprecated.
Renamed to ToEIntegerIfExact.
|
EInteger |
ERational.ToEIntegerExact()
Deprecated.
Renamed to ToEIntegerIfExact.
|
EInteger |
EDecimal.ToEIntegerExact()
Deprecated.
Renamed to ToEIntegerIfExact.
|
EInteger |
EFloat.ToEIntegerIfExact()
Converts this value to an arbitrary-precision integer, checking whether the
value contains a fractional part.
|
EInteger |
ERational.ToEIntegerIfExact()
Converts this value to an arbitrary-precision integer, checking whether the
value is an exact integer.
|
EInteger |
EDecimal.ToEIntegerIfExact()
Converts this value to an arbitrary-precision integer, checking whether the
fractional part of the integer would be lost.
|
| Modifier and Type | Method and Description |
|---|---|
EInteger |
EInteger.Add(EInteger bigintAugend)
Adds this object and another object.
|
int |
EInteger.compareTo(EInteger other)
Compares an arbitrary-precision integer with this instance.
|
static EFloat |
EFloat.Create(EInteger mantissa,
EInteger exponent)
Creates a number with the value exponent*2^mantissa (significand).
|
static ERational |
ERational.Create(EInteger numerator,
EInteger denominator)
Creates a rational number with the given numerator and denominator.
|
static EDecimal |
EDecimal.Create(EInteger mantissa,
EInteger exponent)
Creates a number with the value
exponent*10^mantissa |
static EFloat |
EFloat.CreateNaN(EInteger diag)
Creates a not-a-number arbitrary-precision binary float.
|
static ERational |
ERational.CreateNaN(EInteger diag)
Creates a not-a-number arbitrary-precision rational number.
|
static EDecimal |
EDecimal.CreateNaN(EInteger diag)
Creates a not-a-number arbitrary-precision decimal number.
|
static ERational |
ERational.CreateNaN(EInteger diag,
boolean signaling,
boolean negative)
Creates a not-a-number arbitrary-precision rational number.
|
static EFloat |
EFloat.CreateNaN(EInteger diag,
boolean signaling,
boolean negative,
EContext ctx)
Creates a not-a-number arbitrary-precision binary float.
|
static EDecimal |
EDecimal.CreateNaN(EInteger diag,
boolean signaling,
boolean negative,
EContext ctx)
Creates a not-a-number arbitrary-precision decimal number.
|
EInteger |
EInteger.Divide(EInteger bigintDivisor)
Divides this instance by the value of an arbitrary-precision integer.
|
EDecimal |
EDecimal.DivideToExponent(EDecimal divisor,
EInteger exponent)
Divides two arbitrary-precision decimal numbers, and gives a particular
exponent to the result, using the half-even rounding mode.
|
EDecimal |
EDecimal.DivideToExponent(EDecimal divisor,
EInteger exponent,
EContext ctx)
Divides two arbitrary-precision decimal numbers, and gives a particular
exponent to the result.
|
EDecimal |
EDecimal.DivideToExponent(EDecimal divisor,
EInteger desiredExponent,
ERounding rounding)
Divides two arbitrary-precision decimal numbers, and gives a particular
exponent to the result.
|
EFloat |
EFloat.DivideToExponent(EFloat divisor,
EInteger exponent,
EContext ctx)
Divides two arbitrary-precision binary floats, and gives a particular
exponent to the result.
|
EFloat |
EFloat.DivideToExponent(EFloat divisor,
EInteger desiredExponent,
ERounding rounding)
Divides two arbitrary-precision binary floats, and gives a particular
exponent to the result.
|
EInteger[] |
EInteger.DivRem(EInteger divisor)
Divides this object by another arbitrary-precision integer and returns the
quotient and remainder.
|
boolean |
EContext.ExponentWithinRange(EInteger exponent)
Determines whether a number can have the given Exponent property under this
arithmetic context.
|
static EFloat |
EFloat.FromEInteger(EInteger bigint)
Converts an arbitrary-precision integer to the same value as a binary float.
|
static ERational |
ERational.FromEInteger(EInteger bigint)
Converts an arbitrary-precision integer to a rational number.
|
static EDecimal |
EDecimal.FromEInteger(EInteger bigint)
Converts an arbitrary-precision integer to an arbitrary precision decimal.
|
EInteger |
EInteger.Gcd(EInteger bigintSecond)
Returns the greatest common divisor of two integers.
|
EInteger |
EInteger.Mod(EInteger divisor)
Finds the modulus remainder that results when this instance is divided by
the value of an arbitrary-precision integer.
|
EInteger |
EInteger.ModPow(EInteger pow,
EInteger mod)
Calculates the remainder when an arbitrary-precision integer raised to a
certain power is divided by another arbitrary-precision integer.
|
EFloat |
EFloat.MovePointLeft(EInteger bigPlaces)
Returns a number similar to this number but with the radix point moved to
the left.
|
EDecimal |
EDecimal.MovePointLeft(EInteger bigPlaces)
Returns a number similar to this number but with the decimal 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.
|
EDecimal |
EDecimal.MovePointLeft(EInteger bigPlaces,
EContext ctx)
Returns a number similar to this number but with the decimal point moved to
the left.
|
EFloat |
EFloat.MovePointRight(EInteger bigPlaces)
Returns a number similar to this number but with the radix point moved to
the right.
|
EDecimal |
EDecimal.MovePointRight(EInteger bigPlaces)
Returns a number similar to this number but with the decimal 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.
|
EDecimal |
EDecimal.MovePointRight(EInteger bigPlaces,
EContext ctx)
Returns a number similar to this number but with the decimal point moved to
the right.
|
EInteger |
EInteger.Multiply(EInteger bigintMult)
Multiplies this instance by the value of an arbitrary-precision integer
object.
|
EInteger |
EInteger.PowBigIntVar(EInteger power)
Raises an arbitrary-precision integer to a power, which is given as another
arbitrary-precision integer.
|
EFloat |
EFloat.Quantize(EInteger desiredExponent,
EContext ctx)
Returns a binary float with the same value but a new exponent.
|
EDecimal |
EDecimal.Quantize(EInteger desiredExponent,
EContext ctx)
Returns a decimal number with the same value but a new exponent.
|
EInteger |
EInteger.Remainder(EInteger divisor)
Finds the remainder that results when this instance is divided by the value
of an arbitrary-precision integer.
|
EDecimal |
EDecimal.RoundToExponent(EInteger exponent)
Returns a decimal number with the same value as this object but rounded to a
new exponent if necessary, using the HalfEven rounding mode.
|
EFloat |
EFloat.RoundToExponent(EInteger exponent,
EContext ctx)
Returns a binary float with the same value as this object but rounded to a
new exponent if necessary.
|
EDecimal |
EDecimal.RoundToExponent(EInteger exponent,
EContext ctx)
Returns a decimal number with the same value as this object but rounded to a
new exponent if necessary.
|
EDecimal |
EDecimal.RoundToExponent(EInteger exponent,
ERounding rounding)
Returns a decimal number with the same value as this object but rounded to a
new exponent if necessary, using the given rounding mode.
|
EFloat |
EFloat.RoundToExponentExact(EInteger exponent,
EContext ctx)
Returns a binary float with the same value as this object but rounded to the
given exponent, and signals an inexact flag if the result would be
inexact.
|
EDecimal |
EDecimal.RoundToExponentExact(EInteger exponent,
EContext ctx)
Returns a decimal number with the same value as this object but rounded to
the given exponent, and signals an inexact flag if the result would
be inexact.
|
EFloat |
EFloat.RoundToExponentExact(EInteger exponent,
ERounding rounding)
Returns a binary number with the same value as this object but rounded to
the given exponent.
|
EDecimal |
EDecimal.ScaleByPowerOfTen(EInteger bigPlaces)
Returns a number similar to this number but with the scale adjusted.
|
EDecimal |
EDecimal.ScaleByPowerOfTen(EInteger bigPlaces,
EContext ctx)
Returns a number similar to this number but with its scale adjusted.
|
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.
|
EInteger |
EInteger.Subtract(EInteger subtrahend)
Subtracts an arbitrary-precision integer from this arbitrary-precision
integer.
|
EContext |
EContext.WithBigExponentRange(EInteger exponentMin,
EInteger exponentMax)
Copies this arithmetic context and sets the copy's exponent range.
|
EContext |
EContext.WithBigPrecision(EInteger bigintPrecision)
Copies this EContext and gives it a particular precision value.
|
| Constructor and Description |
|---|
ERational(EInteger numerator,
EInteger denominator)
Deprecated.
Use the ERational.Create method instead. This constructor will be private or
unavailable in version 1.0.
|
CBOR for Java documentation, generated in 2016.