Uses of Class
com.upokecenter.numbers.EDecimal
-
-
Uses of EDecimal in com.upokecenter.numbers
Fields in com.upokecenter.numbers declared as EDecimal Modifier and Type Field Description static EDecimalEDecimal. NaNstatic EDecimalEDecimal. NegativeInfinitystatic EDecimalEDecimal. NegativeZerostatic EDecimalEDecimal. Onestatic EDecimalEDecimal. PositiveInfinitystatic EDecimalEDecimal. SignalingNaNstatic EDecimalEDecimal. Tenstatic EDecimalEDecimal. ZeroMethods in com.upokecenter.numbers that return EDecimal Modifier and Type Method Description EDecimalEDecimal. Abs()EDecimalEDecimal. Abs(EContext context)EDecimalEDecimal. Add(int intValue)EDecimalEDecimal. Add(EDecimal otherValue)EDecimalEDecimal. Add(EDecimal otherValue, EContext ctx)static EDecimalEDecimals. And(EDecimal ed1, EDecimal ed2, EContext ec)Performs a logical AND operation on two decimal numbers in the form of logical operands.static EDecimalEDecimals. BooleanToEDecimal(boolean b, EContext ec)Converts a boolean value (either true or false) to an arbitrary-precision decimal number.static EDecimalEDecimals. Canonical(EDecimal ed)Returns a canonical version of the given arbitrary-precision number object.EDecimalEDecimal. CompareToSignal(EDecimal other, EContext ctx)EDecimalEDecimal. CompareToWithContext(EDecimal other, EContext ctx)EDecimalEDecimal. Copy()static EDecimalEDecimals. Copy(EDecimal ed)Creates a copy of the given arbitrary-precision number object.static EDecimalEDecimals. CopyAbs(EDecimal ed)Returns an arbitrary-precision number object with the same value as the given number object but with a nonnegative sign (that is, the given number object's absolute value).static EDecimalEDecimals. CopyNegate(EDecimal ed)Returns an arbitrary-precision number object with the sign reversed from the given number object.EDecimalEDecimal. CopySign(EDecimal other)static EDecimalEDecimals. CopySign(EDecimal ed, EDecimal other)Returns an arbitrary-precision number object with the same value as the first given number object but with a the same sign (positive or negative) as the second given number object.static EDecimalEDecimal. Create(int mantissaSmall, int exponentSmall)static EDecimalEDecimal. Create(long mantissaLong, int exponentSmall)static EDecimalEDecimal. Create(long mantissaLong, long exponentLong)static EDecimalEDecimal. Create(EInteger mantissa, int exponentSmall)static EDecimalEDecimal. Create(EInteger mantissa, long exponentLong)static EDecimalEDecimal. Create(EInteger mantissa, EInteger exponent)static EDecimalEDecimal. CreateNaN(EInteger diag)static EDecimalEDecimal. CreateNaN(EInteger diag, boolean signaling, boolean negative, EContext ctx)EDecimalEDecimal. Decrement()EDecimalEDecimal. Divide(int intValue)EDecimalEDecimal. Divide(EDecimal divisor)EDecimalEDecimal. Divide(EDecimal divisor, EContext ctx)EDecimal[]EDecimal. DivideAndRemainderNaturalScale(EDecimal divisor)Deprecated.Renamed to DivRemNaturalScale.EDecimal[]EDecimal. DivideAndRemainderNaturalScale(EDecimal divisor, EContext ctx)Deprecated.Renamed to DivRemNaturalScale.EDecimalEDecimal. DivideToExponent(EDecimal divisor, int desiredExponentInt)EDecimalEDecimal. DivideToExponent(EDecimal divisor, int desiredExponentInt, EContext ctx)EDecimalEDecimal. DivideToExponent(EDecimal divisor, int desiredExponentInt, ERounding rounding)EDecimalEDecimal. DivideToExponent(EDecimal divisor, long desiredExponentSmall)EDecimalEDecimal. DivideToExponent(EDecimal divisor, long desiredExponentSmall, EContext ctx)EDecimalEDecimal. DivideToExponent(EDecimal divisor, long desiredExponentSmall, ERounding rounding)EDecimalEDecimal. DivideToExponent(EDecimal divisor, EInteger exponent)EDecimalEDecimal. DivideToExponent(EDecimal divisor, EInteger exponent, EContext ctx)EDecimalEDecimal. DivideToExponent(EDecimal divisor, EInteger desiredExponent, ERounding rounding)EDecimalEDecimal. DivideToIntegerNaturalScale(EDecimal divisor)EDecimalEDecimal. DivideToIntegerNaturalScale(EDecimal divisor, EContext ctx)EDecimalEDecimal. DivideToIntegerZeroScale(EDecimal divisor, EContext ctx)EDecimalEDecimal. DivideToSameExponent(EDecimal divisor, ERounding rounding)EDecimal[]EDecimal. DivRemNaturalScale(EDecimal divisor)EDecimal[]EDecimal. DivRemNaturalScale(EDecimal divisor, EContext ctx)EDecimalEDecimal. Exp(EContext ctx)static EDecimalEDecimal. FromBoolean(boolean boolValue)static EDecimalEDecimal. FromByte(byte inputByte)static EDecimalEDecimal. FromDouble(double dbl)static EDecimalEDecimal. FromEFloat(EFloat bigfloat)static EDecimalEDecimal. FromEInteger(EInteger bigint)static EDecimalEDecimal. FromExtendedFloat(EFloat ef)Deprecated.Renamed to FromEFloat.static EDecimalEDecimal. FromInt16(short inputInt16)static EDecimalEDecimal. FromInt32(int valueSmaller)static EDecimalEDecimal. FromInt64(long valueSmall)static EDecimalEDecimal. FromSingle(float flt)static EDecimalEDecimal. FromString(java.lang.String str)static EDecimalEDecimal. FromString(java.lang.String str, int offset, int length)static EDecimalEDecimal. FromString(java.lang.String str, int offset, int length, EContext ctx)static EDecimalEDecimal. FromString(java.lang.String str, EContext ctx)EDecimalEDecimal. Increment()static EDecimalEDecimals. Int32ToEDecimal(int i32, EContext ec)Creates an arbitrary-precision decimal number from a 32-bit signed integer.static EDecimalEDecimals. Invert(EDecimal ed1, EContext ec)Performs a logical NOT operation on an arbitrary-precision decimal number in the form of a logical operand.EDecimalEDecimal. Log(EContext ctx)EDecimalEDecimal. Log10(EContext ctx)static EDecimalEDecimals. LogB(EDecimal ed, EContext ec)Returns the base-10 exponent of an arbitrary-precision decimal number (when that number is expressed in scientific notation with one digit before the radix point).EDecimalEDecimal. LogN(EDecimal baseValue, EContext ctx)static EDecimalEDecimal. Max(EDecimal first, EDecimal second)static EDecimalEDecimal. Max(EDecimal first, EDecimal second, EContext ctx)static EDecimalEDecimal. MaxMagnitude(EDecimal first, EDecimal second)static EDecimalEDecimal. MaxMagnitude(EDecimal first, EDecimal second, EContext ctx)static EDecimalEDecimal. Min(EDecimal first, EDecimal second)static EDecimalEDecimal. Min(EDecimal first, EDecimal second, EContext ctx)static EDecimalEDecimal. MinMagnitude(EDecimal first, EDecimal second)static EDecimalEDecimal. MinMagnitude(EDecimal first, EDecimal second, EContext ctx)EDecimalEDecimal. MovePointLeft(int places)EDecimalEDecimal. MovePointLeft(int places, EContext ctx)EDecimalEDecimal. MovePointLeft(EInteger bigPlaces)EDecimalEDecimal. MovePointLeft(EInteger bigPlaces, EContext ctx)EDecimalEDecimal. MovePointRight(int places)EDecimalEDecimal. MovePointRight(int places, EContext ctx)EDecimalEDecimal. MovePointRight(EInteger bigPlaces)EDecimalEDecimal. MovePointRight(EInteger bigPlaces, EContext ctx)EDecimalEDecimal. Multiply(int intValue)EDecimalEDecimal. Multiply(EDecimal otherValue)EDecimalEDecimal. Multiply(EDecimal op, EContext ctx)EDecimalEDecimal. MultiplyAndAdd(EDecimal multiplicand, EDecimal augend)EDecimalEDecimal. MultiplyAndAdd(EDecimal op, EDecimal augend, EContext ctx)EDecimalEDecimal. MultiplyAndSubtract(EDecimal op, EDecimal subtrahend, EContext ctx)EDecimalEDecimal. Negate()EDecimalEDecimal. Negate(EContext context)EDecimalEDecimal. NextMinus(EContext ctx)EDecimalEDecimal. NextPlus(EContext ctx)EDecimalEDecimal. NextToward(EDecimal otherValue, EContext ctx)static EDecimalEDecimals. Or(EDecimal ed1, EDecimal ed2, EContext ec)Performs a logical OR operation on two decimal numbers in the form of logical operands.static EDecimalEDecimal. PI(EContext ctx)EDecimalEDecimal. Plus(EContext ctx)EDecimalEDecimal. Pow(int exponentSmall)EDecimalEDecimal. Pow(int exponentSmall, EContext ctx)EDecimalEDecimal. Pow(EDecimal exponent)EDecimalEDecimal. Pow(EDecimal exponent, EContext ctx)EDecimalEDecimal. PreRound(EContext ctx)EDecimalEDecimal. Quantize(int desiredExponentInt, EContext ctx)EDecimalEDecimal. Quantize(int desiredExponentInt, ERounding rounding)EDecimalEDecimal. Quantize(EDecimal otherValue, EContext ctx)EDecimalEDecimal. Quantize(EInteger desiredExponent, EContext ctx)static EDecimalEDecimals. Radix(EContext ec)Returns the number 10, the decimal radix.EDecimalEDecimal. Reduce(EContext ctx)EDecimalEDecimal. Remainder(EDecimal divisor, EContext ctx)EDecimalEDecimal. RemainderNaturalScale(EDecimal divisor)EDecimalEDecimal. RemainderNaturalScale(EDecimal divisor, EContext ctx)EDecimalEDecimal. RemainderNear(EDecimal divisor, EContext ctx)EDecimalEDecimal. RemainderNoRoundAfterDivide(EDecimal divisor, EContext ctx)static EDecimalEDecimals. Rescale(EDecimal ed, EDecimal scale, EContext ec)Returns an arbitrary-precision decimal number with the same value as this object but with the given exponent, expressed as an arbitrary-precision decimal number.static EDecimalEDecimals. Rotate(EDecimal ed, EDecimal ed2, EContext ec)Rotates the digits of an arbitrary-precision decimal number's significand.EDecimalEDecimal. RoundToExponent(int exponentSmall)EDecimalEDecimal. RoundToExponent(int exponentSmall, EContext ctx)EDecimalEDecimal. RoundToExponent(int exponentSmall, ERounding rounding)EDecimalEDecimal. RoundToExponent(EInteger exponent)EDecimalEDecimal. RoundToExponent(EInteger exponent, EContext ctx)EDecimalEDecimal. RoundToExponent(EInteger exponent, ERounding rounding)EDecimalEDecimal. RoundToExponentExact(int exponentSmall, EContext ctx)EDecimalEDecimal. RoundToExponentExact(int exponentSmall, ERounding rounding)EDecimalEDecimal. RoundToExponentExact(EInteger exponent, EContext ctx)EDecimalEDecimal. RoundToIntegerExact(EContext ctx)EDecimalEDecimal. RoundToIntegerNoRoundedFlag(EContext ctx)EDecimalEDecimal. RoundToIntegralExact(EContext ctx)Deprecated.Renamed to RoundToIntegerExact.EDecimalEDecimal. RoundToIntegralNoRoundedFlag(EContext ctx)Deprecated.Renamed to RoundToIntegerNoRoundedFlag.EDecimalEDecimal. RoundToPrecision(EContext ctx)static EDecimalEDecimals. ScaleB(EDecimal ed, EDecimal ed2, EContext ec)Finds an arbitrary-precision decimal number whose decimal point is moved a given number of places.EDecimalEDecimal. ScaleByPowerOfTen(int places)EDecimalEDecimal. ScaleByPowerOfTen(int places, EContext ctx)EDecimalEDecimal. ScaleByPowerOfTen(EInteger bigPlaces)EDecimalEDecimal. ScaleByPowerOfTen(EInteger bigPlaces, EContext ctx)static EDecimalEDecimals. Shift(EDecimal ed, EDecimal ed2, EContext ec)Shifts the digits of an arbitrary-precision decimal number's significand.EDecimalEDecimal. Sqrt(EContext ctx)EDecimalEDecimal. SquareRoot(EContext ctx)Deprecated.Renamed to Sqrt.EDecimalEDecimal. Subtract(int intValue)EDecimalEDecimal. Subtract(EDecimal otherValue)EDecimalEDecimal. Subtract(EDecimal otherValue, EContext ctx)EDecimalEFloat. ToEDecimal()EDecimalERational. ToEDecimal()Converts this rational number to an arbitrary-precision decimal number.EDecimalERational. ToEDecimal(EContext ctx)Converts this rational number to an arbitrary-precision decimal number and rounds the result to the given precision.EDecimalERational. ToEDecimalExactIfPossible(EContext ctx)Converts this rational number to an arbitrary-precision decimal number, but if the result would have a nonterminating decimal expansion, rounds that result to the given precision.EDecimalEFloat. ToExtendedDecimal()Deprecated.Renamed to ToEDecimal.EDecimalERational. ToExtendedDecimal()Deprecated.Renamed to ToEDecimal.EDecimalERational. ToExtendedDecimal(EContext ctx)Deprecated.Renamed to ToEDecimal.EDecimalERational. ToExtendedDecimalExactIfPossible(EContext ctx)Deprecated.Renamed to ToEDecimalExactIfPossible.static EDecimalEDecimals. Trim(EDecimal ed1, EContext ec)Returns an arbitrary-precision number with the same value as this one but with certain trailing zeros removed from its significand.EDecimalEDecimal. Ulp()static EDecimalEDecimals. Xor(EDecimal ed1, EDecimal ed2, EContext ec)Performs a logical exclusive-OR (XOR) operation on two decimal numbers in the form of logical operands.Methods in com.upokecenter.numbers with parameters of type EDecimal Modifier and Type Method Description EDecimalEDecimal. Add(EDecimal otherValue)EDecimalEDecimal. Add(EDecimal otherValue, EContext ctx)static EDecimalEDecimals. And(EDecimal ed1, EDecimal ed2, EContext ec)Performs a logical AND operation on two decimal numbers in the form of logical operands.static EDecimalEDecimals. Canonical(EDecimal ed)Returns a canonical version of the given arbitrary-precision number object.intEDecimal. compareTo(EDecimal other)intERational. CompareToDecimal(EDecimal other)Compares an arbitrary-precision decimal number with this instance.EDecimalEDecimal. CompareToSignal(EDecimal other, EContext ctx)static intEDecimals. CompareTotal(EDecimal ed, EDecimal other, EContext ec)Compares the values of one arbitrary-precision number object and another object, imposing a total ordering on all possible values.static intEDecimals. CompareTotalMagnitude(EDecimal ed, EDecimal other, EContext ec)Compares the absolute values of two arbitrary-precision number objects, imposing a total ordering on all possible values (ignoring their signs).intEDecimal. CompareToTotal(EDecimal other)intEDecimal. CompareToTotal(EDecimal other, EContext ctx)intEDecimal. CompareToTotalMagnitude(EDecimal other)intEDecimal. CompareToTotalMagnitude(EDecimal other, EContext ctx)intEDecimal. CompareToValue(EDecimal other)EDecimalEDecimal. CompareToWithContext(EDecimal other, EContext ctx)static EDecimalEDecimals. Copy(EDecimal ed)Creates a copy of the given arbitrary-precision number object.static EDecimalEDecimals. CopyAbs(EDecimal ed)Returns an arbitrary-precision number object with the same value as the given number object but with a nonnegative sign (that is, the given number object's absolute value).static EDecimalEDecimals. CopyNegate(EDecimal ed)Returns an arbitrary-precision number object with the sign reversed from the given number object.EDecimalEDecimal. CopySign(EDecimal other)static EDecimalEDecimals. CopySign(EDecimal ed, EDecimal other)Returns an arbitrary-precision number object with the same value as the first given number object but with a the same sign (positive or negative) as the second given number object.EDecimalEDecimal. Divide(EDecimal divisor)EDecimalEDecimal. Divide(EDecimal divisor, EContext ctx)EDecimal[]EDecimal. DivideAndRemainderNaturalScale(EDecimal divisor)Deprecated.Renamed to DivRemNaturalScale.EDecimal[]EDecimal. DivideAndRemainderNaturalScale(EDecimal divisor, EContext ctx)Deprecated.Renamed to DivRemNaturalScale.EDecimalEDecimal. DivideToExponent(EDecimal divisor, int desiredExponentInt)EDecimalEDecimal. DivideToExponent(EDecimal divisor, int desiredExponentInt, EContext ctx)EDecimalEDecimal. DivideToExponent(EDecimal divisor, int desiredExponentInt, ERounding rounding)EDecimalEDecimal. DivideToExponent(EDecimal divisor, long desiredExponentSmall)EDecimalEDecimal. DivideToExponent(EDecimal divisor, long desiredExponentSmall, EContext ctx)EDecimalEDecimal. DivideToExponent(EDecimal divisor, long desiredExponentSmall, ERounding rounding)EDecimalEDecimal. DivideToExponent(EDecimal divisor, EInteger exponent)EDecimalEDecimal. DivideToExponent(EDecimal divisor, EInteger exponent, EContext ctx)EDecimalEDecimal. DivideToExponent(EDecimal divisor, EInteger desiredExponent, ERounding rounding)EDecimalEDecimal. DivideToIntegerNaturalScale(EDecimal divisor)EDecimalEDecimal. DivideToIntegerNaturalScale(EDecimal divisor, EContext ctx)EDecimalEDecimal. DivideToIntegerZeroScale(EDecimal divisor, EContext ctx)EDecimalEDecimal. DivideToSameExponent(EDecimal divisor, ERounding rounding)EDecimal[]EDecimal. DivRemNaturalScale(EDecimal divisor)EDecimal[]EDecimal. DivRemNaturalScale(EDecimal divisor, EContext ctx)booleanEDecimal. equals(EDecimal other)static ERationalERational. FromEDecimal(EDecimal ef)Converts an arbitrary-precision decimal number to a rational number.static ERationalERational. FromExtendedDecimal(EDecimal ef)Deprecated.Renamed to FromEDecimal.static EDecimalEDecimals. Invert(EDecimal ed1, EContext ec)Performs a logical NOT operation on an arbitrary-precision decimal number in the form of a logical operand.static booleanEDecimals. IsCanonical(EDecimal ed)Returns whether the given arbitrary-precision number object is in a canonical form.static booleanEDecimals. IsFinite(EDecimal ed)Returns whether the given arbitrary-precision number object is neither null nor infinity nor not-a-number (NaN).static booleanEDecimals. IsInfinite(EDecimal ed)Returns whether the given arbitrary-precision number object is positive or negative infinity.static booleanEDecimals. IsNaN(EDecimal ed)Returns whether the given arbitrary-precision number object is a not-a-number (NaN).static booleanEDecimals. IsNormal(EDecimal ed, EContext ec)Returns whether the given number is a normal number.static booleanEDecimals. IsQuietNaN(EDecimal ed)Returns whether the given arbitrary-precision number object is a quiet not-a-number (NaN).static booleanEDecimals. IsSignalingNaN(EDecimal ed)Returns whether the given arbitrary-precision number object is a signaling not-a-number (NaN).static booleanEDecimals. IsSigned(EDecimal ed)Returns whether the given arbitrary-precision number object is negative (including negative infinity, negative not-a-number.get(NaN), or negative zero).static booleanEDecimals. IsSubnormal(EDecimal ed, EContext ec)Returns whether the given number is a subnormal number.static booleanEDecimals. IsZero(EDecimal ed)Returns whether the given arbitrary-precision number object is zero (positive zero or negative zero).static EDecimalEDecimals. LogB(EDecimal ed, EContext ec)Returns the base-10 exponent of an arbitrary-precision decimal number (when that number is expressed in scientific notation with one digit before the radix point).EDecimalEDecimal. LogN(EDecimal baseValue, EContext ctx)static EDecimalEDecimal. Max(EDecimal first, EDecimal second)static EDecimalEDecimal. Max(EDecimal first, EDecimal second, EContext ctx)static EDecimalEDecimal. MaxMagnitude(EDecimal first, EDecimal second)static EDecimalEDecimal. MaxMagnitude(EDecimal first, EDecimal second, EContext ctx)static EDecimalEDecimal. Min(EDecimal first, EDecimal second)static EDecimalEDecimal. Min(EDecimal first, EDecimal second, EContext ctx)static EDecimalEDecimal. MinMagnitude(EDecimal first, EDecimal second)static EDecimalEDecimal. MinMagnitude(EDecimal first, EDecimal second, EContext ctx)EDecimalEDecimal. Multiply(EDecimal otherValue)EDecimalEDecimal. Multiply(EDecimal op, EContext ctx)EDecimalEDecimal. MultiplyAndAdd(EDecimal multiplicand, EDecimal augend)EDecimalEDecimal. MultiplyAndAdd(EDecimal op, EDecimal augend, EContext ctx)EDecimalEDecimal. MultiplyAndSubtract(EDecimal op, EDecimal subtrahend, EContext ctx)EDecimalEDecimal. NextToward(EDecimal otherValue, EContext ctx)static intEDecimals. NumberClass(EDecimal ed, EContext ec)Finds the number class for an arbitrary-precision decimal number object.static EDecimalEDecimals. Or(EDecimal ed1, EDecimal ed2, EContext ec)Performs a logical OR operation on two decimal numbers in the form of logical operands.EDecimalEDecimal. Pow(EDecimal exponent)EDecimalEDecimal. Pow(EDecimal exponent, EContext ctx)EDecimalEDecimal. Quantize(EDecimal otherValue, EContext ctx)EDecimalEDecimal. Remainder(EDecimal divisor, EContext ctx)EDecimalEDecimal. RemainderNaturalScale(EDecimal divisor)EDecimalEDecimal. RemainderNaturalScale(EDecimal divisor, EContext ctx)EDecimalEDecimal. RemainderNear(EDecimal divisor, EContext ctx)EDecimalEDecimal. RemainderNoRoundAfterDivide(EDecimal divisor, EContext ctx)static EDecimalEDecimals. Rescale(EDecimal ed, EDecimal scale, EContext ec)Returns an arbitrary-precision decimal number with the same value as this object but with the given exponent, expressed as an arbitrary-precision decimal number.static EDecimalEDecimals. Rotate(EDecimal ed, EDecimal ed2, EContext ec)Rotates the digits of an arbitrary-precision decimal number's significand.static booleanEDecimals. SameQuantum(EDecimal ed1, EDecimal ed2)Returns whether two arbitrary-precision numbers have the same exponent, they both are not-a-number (NaN), or they both are infinity (positive and/or negative).static EDecimalEDecimals. ScaleB(EDecimal ed, EDecimal ed2, EContext ec)Finds an arbitrary-precision decimal number whose decimal point is moved a given number of places.static EDecimalEDecimals. Shift(EDecimal ed, EDecimal ed2, EContext ec)Shifts the digits of an arbitrary-precision decimal number's significand.EDecimalEDecimal. Subtract(EDecimal otherValue)EDecimalEDecimal. Subtract(EDecimal otherValue, EContext ctx)static EDecimalEDecimals. Trim(EDecimal ed1, EContext ec)Returns an arbitrary-precision number with the same value as this one but with certain trailing zeros removed from its significand.static EDecimalEDecimals. Xor(EDecimal ed1, EDecimal ed2, EContext ec)Performs a logical exclusive-OR (XOR) operation on two decimal numbers in the form of logical operands.
-