Class EFloat

  • All Implemented Interfaces:
    java.lang.Comparable<EFloat>

    public final class EFloat
    extends java.lang.Object
    implements java.lang.Comparable<EFloat>
    • Field Detail

      • NaN

        public static final EFloat NaN
      • NegativeInfinity

        public static final EFloat NegativeInfinity
      • NegativeZero

        public static final EFloat NegativeZero
      • One

        public static final EFloat One
      • PositiveInfinity

        public static final EFloat PositiveInfinity
      • SignalingNaN

        public static final EFloat SignalingNaN
      • Ten

        public static final EFloat Ten
      • Zero

        public static final EFloat Zero
    • Method Detail

      • getExponent

        public final EInteger getExponent()
      • isFinite

        public final boolean isFinite()
      • isNegative

        public final boolean isNegative()
      • isZero

        public final boolean isZero()
      • getMantissa

        public final EInteger getMantissa()
      • signum

        public final int signum()
      • getUnsignedMantissa

        public final EInteger getUnsignedMantissa()
      • Create

        public static EFloat Create​(int mantissaSmall,
                                    int exponentSmall)
      • Create

        public static EFloat Create​(long mantissaLong,
                                    long exponentLong)
      • Create

        public static EFloat Create​(long mantissaLong,
                                    int exponentSmall)
      • Create

        public static EFloat Create​(EInteger mantissa,
                                    int exponentSmall)
      • Create

        public static EFloat Create​(EInteger mantissa,
                                    long exponentLong)
      • CreateNaN

        public static EFloat CreateNaN​(EInteger diag,
                                       boolean signaling,
                                       boolean negative,
                                       EContext ctx)
      • FromDouble

        public static EFloat FromDouble​(double dbl)
      • FromEInteger

        public static EFloat FromEInteger​(EInteger bigint)
      • FromSingle

        public static EFloat FromSingle​(float flt)
      • FromString

        public static EFloat FromString​(java.lang.String str,
                                        int offset,
                                        int length,
                                        EContext ctx)
      • FromString

        public static EFloat FromString​(java.lang.String str)
      • FromString

        public static EFloat FromString​(java.lang.String str,
                                        EContext ctx)
      • FromString

        public static EFloat FromString​(java.lang.String str,
                                        int offset,
                                        int length)
      • Add

        public EFloat Add​(int intValue)
      • Subtract

        public EFloat Subtract​(int intValue)
      • Multiply

        public EFloat Multiply​(int intValue)
      • Divide

        public EFloat Divide​(int intValue)
      • compareTo

        public int compareTo​(EFloat other)
        Specified by:
        compareTo in interface java.lang.Comparable<EFloat>
      • CompareToValue

        public int CompareToValue​(EFloat other)
      • compareTo

        public int compareTo​(int intOther)
      • CompareToValue

        public int CompareToValue​(int intOther)
      • CompareToTotal

        public int CompareToTotal​(EFloat other,
                                  EContext ctx)
      • CompareToTotalMagnitude

        public int CompareToTotalMagnitude​(EFloat other,
                                           EContext ctx)
      • CompareToTotal

        public int CompareToTotal​(EFloat other)
      • CompareToTotalMagnitude

        public int CompareToTotalMagnitude​(EFloat other)
      • DivideAndRemainderNaturalScale

        @Deprecated
        public EFloat[] DivideAndRemainderNaturalScale​(EFloat divisor)
        Deprecated.
        Renamed to DivRemNaturalScale.
      • DivideAndRemainderNaturalScale

        @Deprecated
        public EFloat[] DivideAndRemainderNaturalScale​(EFloat divisor,
                                                       EContext ctx)
        Deprecated.
        Renamed to DivRemNaturalScale.
      • DivideToExponent

        public EFloat DivideToExponent​(EFloat divisor,
                                       long desiredExponentSmall,
                                       EContext ctx)
      • DivideToExponent

        public EFloat DivideToExponent​(EFloat divisor,
                                       long desiredExponentSmall,
                                       ERounding rounding)
      • DivideToIntegerNaturalScale

        public EFloat DivideToIntegerNaturalScale​(EFloat divisor)
      • DivideToIntegerNaturalScale

        public EFloat DivideToIntegerNaturalScale​(EFloat divisor,
                                                  EContext ctx)
      • DivideToIntegerZeroScale

        public EFloat DivideToIntegerZeroScale​(EFloat divisor,
                                               EContext ctx)
      • DivRemNaturalScale

        public EFloat[] DivRemNaturalScale​(EFloat divisor)
      • equals

        public boolean equals​(EFloat other)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • EqualsInternal

        public boolean EqualsInternal​(EFloat otherValue)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • IsInfinity

        public boolean IsInfinity()
      • IsNaN

        public boolean IsNaN()
      • IsNegativeInfinity

        public boolean IsNegativeInfinity()
      • IsPositiveInfinity

        public boolean IsPositiveInfinity()
      • IsQuietNaN

        public boolean IsQuietNaN()
      • IsSignalingNaN

        public boolean IsSignalingNaN()
      • MovePointLeft

        public EFloat MovePointLeft​(int places)
      • MovePointLeft

        public EFloat MovePointLeft​(int places,
                                    EContext ctx)
      • MovePointRight

        public EFloat MovePointRight​(int places)
      • MovePointRight

        public EFloat MovePointRight​(int places,
                                     EContext ctx)
      • MovePointRight

        public EFloat MovePointRight​(EInteger bigPlaces)
      • Negate

        public EFloat Negate()
      • Pow

        public EFloat Pow​(int exponentSmall)
      • Precision

        public EInteger Precision()
      • IsInteger

        public boolean IsInteger()
      • Quantize

        public EFloat Quantize​(int desiredExponentInt,
                               EContext ctx)
      • RemainderNoRoundAfterDivide

        public EFloat RemainderNoRoundAfterDivide​(EFloat divisor,
                                                  EContext ctx)
      • RemainderNaturalScale

        public EFloat RemainderNaturalScale​(EFloat divisor)
      • RoundToExponent

        public EFloat RoundToExponent​(int exponentSmall,
                                      EContext ctx)
      • RoundToExponentExact

        public EFloat RoundToExponentExact​(int exponentSmall,
                                           EContext ctx)
      • RoundToIntegerExact

        public EFloat RoundToIntegerExact​(EContext ctx)
      • RoundToIntegerNoRoundedFlag

        public EFloat RoundToIntegerNoRoundedFlag​(EContext ctx)
      • RoundToIntegralExact

        @Deprecated
        public EFloat RoundToIntegralExact​(EContext ctx)
        Deprecated.
        Renamed to RoundToIntegerExact.
      • RoundToIntegralNoRoundedFlag

        @Deprecated
        public EFloat RoundToIntegralNoRoundedFlag​(EContext ctx)
        Deprecated.
        Renamed to RoundToIntegerNoRoundedFlag.
      • ScaleByPowerOfTwo

        public EFloat ScaleByPowerOfTwo​(int places)
      • ScaleByPowerOfTwo

        public EFloat ScaleByPowerOfTwo​(int places,
                                        EContext ctx)
      • ScaleByPowerOfTwo

        public EFloat ScaleByPowerOfTwo​(EInteger bigPlaces)
      • SquareRoot

        @Deprecated
        public EFloat SquareRoot​(EContext ctx)
        Deprecated.
        Renamed to Sqrt.
      • ToDouble

        public double ToDouble()
      • ToEDecimal

        public EDecimal ToEDecimal()
      • ToEInteger

        public EInteger ToEInteger()
      • ToEIntegerExact

        @Deprecated
        public EInteger ToEIntegerExact()
        Deprecated.
        Renamed to ToEIntegerIfExact.
      • ToEIntegerIfExact

        public EInteger ToEIntegerIfExact()
      • ToEngineeringString

        public java.lang.String ToEngineeringString()
      • ToExtendedDecimal

        @Deprecated
        public EDecimal ToExtendedDecimal()
        Deprecated.
        Renamed to ToEDecimal.
      • ToPlainString

        public java.lang.String ToPlainString()
      • ToShortestString

        public java.lang.String ToShortestString​(EContext ctx)
      • ToSingle

        public float ToSingle()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • ToSizedEInteger

        public EInteger ToSizedEInteger​(int maxBitLength)
      • ToSizedEIntegerIfExact

        public EInteger ToSizedEIntegerIfExact​(int maxBitLength)
      • Increment

        public EFloat Increment()
      • Decrement

        public EFloat Decrement()
      • ToByteChecked

        public byte ToByteChecked()
      • ToByteUnchecked

        public byte ToByteUnchecked()
      • ToByteIfExact

        public byte ToByteIfExact()
      • FromByte

        public static EFloat FromByte​(byte inputByte)
      • ToInt16Checked

        public short ToInt16Checked()
      • ToInt16Unchecked

        public short ToInt16Unchecked()
      • ToInt16IfExact

        public short ToInt16IfExact()
      • FromInt16

        public static EFloat FromInt16​(short inputInt16)
      • ToInt32Checked

        public int ToInt32Checked()
      • ToInt32Unchecked

        public int ToInt32Unchecked()
      • ToInt32IfExact

        public int ToInt32IfExact()
      • FromBoolean

        public static EFloat FromBoolean​(boolean boolValue)
      • FromInt32

        public static EFloat FromInt32​(int inputInt32)
      • ToInt64Checked

        public long ToInt64Checked()
      • ToInt64Unchecked

        public long ToInt64Unchecked()
      • ToInt64IfExact

        public long ToInt64IfExact()
      • FromInt64

        public static EFloat FromInt64​(long inputInt64)