java.lang
Class FloatingDecimal
java.lang.Object
|
+--java.lang.FloatingDecimal
- class FloatingDecimal
- extends Object
isExceptional
boolean isExceptional
isNegative
boolean isNegative
decExponent
int decExponent
digits
char[] digits
nDigits
int nDigits
bigIntExp
int bigIntExp
bigIntNBits
int bigIntNBits
mustSetRoundDir
boolean mustSetRoundDir
roundDir
int roundDir
signMask
static final long signMask
expMask
static final long expMask
fractMask
static final long fractMask
expShift
static final int expShift
expBias
static final int expBias
fractHOB
static final long fractHOB
expOne
static final long expOne
maxSmallBinExp
static final int maxSmallBinExp
minSmallBinExp
static final int minSmallBinExp
maxDecimalDigits
static final int maxDecimalDigits
maxDecimalExponent
static final int maxDecimalExponent
minDecimalExponent
static final int minDecimalExponent
bigDecimalExponent
static final int bigDecimalExponent
highbyte
static final long highbyte
highbit
static final long highbit
lowbytes
static final long lowbytes
singleSignMask
static final int singleSignMask
singleExpMask
static final int singleExpMask
singleFractMask
static final int singleFractMask
singleExpShift
static final int singleExpShift
singleFractHOB
static final int singleFractHOB
singleExpBias
static final int singleExpBias
singleMaxDecimalDigits
static final int singleMaxDecimalDigits
singleMaxDecimalExponent
static final int singleMaxDecimalExponent
singleMinDecimalExponent
static final int singleMinDecimalExponent
intDecimalDigits
static final int intDecimalDigits
b5p
private static FDBigInt[] b5p
small10pow
private static final double[] small10pow
singleSmall10pow
private static final float[] singleSmall10pow
big10pow
private static final double[] big10pow
tiny10pow
private static final double[] tiny10pow
maxSmallTen
private static final int maxSmallTen
singleMaxSmallTen
private static final int singleMaxSmallTen
small5pow
private static final int[] small5pow
long5pow
private static final long[] long5pow
n5bits
private static final int[] n5bits
infinity
private static final char[] infinity
notANumber
private static final char[] notANumber
zero
private static final char[] zero
FloatingDecimal
private FloatingDecimal(boolean negSign,
int decExponent,
char[] digits,
int n,
boolean e)
FloatingDecimal
public FloatingDecimal(double d)
FloatingDecimal
public FloatingDecimal(float f)
countBits
private static int countBits(long v)
big5pow
private static FDBigInt big5pow(int p)
multPow52
private static FDBigInt multPow52(FDBigInt v,
int p5,
int p2)
constructPow52
private static FDBigInt constructPow52(int p5,
int p2)
doubleToBigInt
private FDBigInt doubleToBigInt(double dval)
ulp
private static double ulp(double dval,
boolean subtracting)
stickyRound
float stickyRound(double dval)
developLongDigits
private void developLongDigits(int decExponent,
long lvalue,
long insignificant)
roundup
private void roundup()
dtoa
private void dtoa(int binExp,
long fractBits,
int nSignificantBits)
toString
public String toString()
- Description copied from class:
Object
- Suppressed: Returns a string representation of the object. In general, the
toString
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())
- Overrides:
toString
in class Object
- Returns:
- a string representation of the object.
toJavaFormatString
public String toJavaFormatString()
readJavaFormatString
public static FloatingDecimal readJavaFormatString(String in)
throws NumberFormatException
NumberFormatException
doubleValue
public double doubleValue()
floatValue
public float floatValue()
comments?