java.lang.Object | +--java.lang.FloatingDecimal
FloatingDecimal(double d)
FloatingDecimal(float f)
boolean isExceptional
boolean isNegative
int decExponent
char[] digits
int nDigits
int bigIntExp
int bigIntNBits
boolean mustSetRoundDir
int roundDir
static final long signMask
static final long expMask
static final long fractMask
static final int expShift
static final int expBias
static final long fractHOB
static final long expOne
static final int maxSmallBinExp
static final int minSmallBinExp
static final int maxDecimalDigits
static final int maxDecimalExponent
static final int minDecimalExponent
static final int bigDecimalExponent
static final long highbyte
static final long highbit
static final long lowbytes
static final int singleSignMask
static final int singleExpMask
static final int singleFractMask
static final int singleExpShift
static final int singleFractHOB
static final int singleExpBias
static final int singleMaxDecimalDigits
static final int singleMaxDecimalExponent
static final int singleMinDecimalExponent
static final int intDecimalDigits
private static FDBigInt[] b5p
private static final double[] small10pow
private static final float[] singleSmall10pow
private static final double[] big10pow
private static final double[] tiny10pow
private static final int maxSmallTen
private static final int singleMaxSmallTen
private static final int[] small5pow
private static final long[] long5pow
private static final int[] n5bits
private static final char[] infinity
private static final char[] notANumber
private static final char[] zero
private FloatingDecimal(boolean negSign, int decExponent, char[] digits, int n, boolean e)
public FloatingDecimal(double d)
public FloatingDecimal(float f)
private static int countBits(long v)
private static FDBigInt big5pow(int p)
private static FDBigInt multPow52(FDBigInt v, int p5, int p2)
private static FDBigInt constructPow52(int p5, int p2)
private FDBigInt doubleToBigInt(double dval)
private static double ulp(double dval, boolean subtracting)
float stickyRound(double dval)
private void developLongDigits(int decExponent, long lvalue, long insignificant)
private void roundup()
private void dtoa(int binExp, long fractBits, int nSignificantBits)
public String toString()
ObjecttoString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
public String toJavaFormatString()
public static FloatingDecimal readJavaFormatString(String in) throws NumberFormatException
public double doubleValue()
public float floatValue()