mondrian.util
Class Format.FloatingDecimal

java.lang.Object
  extended by mondrian.util.Format.FloatingDecimal
Enclosing class:
Format

static class Format.FloatingDecimal
extends Object

Copied from java.lang.FloatingDecimal.

 

Field Summary
(package private)  int decExponent
           
(package private)  char[] digits
           
(package private) static int expBias
           
(package private) static long expMask
           
(package private) static long expOne
           
(package private) static int expShift
           
(package private) static long fractHOB
           
(package private) static long fractMask
           
(package private) static long highbit
           
(package private) static long highbyte
           
(package private)  boolean isExceptional
           
(package private)  boolean isNegative
           
(package private) static long lowbytes
           
(package private) static int maxSmallBinExp
           
(package private) static int minSmallBinExp
           
(package private)  int nDigits
           
(package private) static long signMask
           
(package private) static int singleExpBias
           
(package private) static int singleExpMask
           
(package private) static int singleExpShift
           
(package private) static int singleFractHOB
           
(package private) static int singleFractMask
           
(package private) static int singleSignMask
           
 
Constructor Summary
Format.FloatingDecimal(double d)
           
Format.FloatingDecimal(float f)
           
Format.FloatingDecimal(long n)
           
 
Method Summary
 void shift(int i)
           
 String toJavaFormatString()
           
 String toJavaFormatString(int minDigitsLeftOfDecimal, char decimalChar, int minDigitsRightOfDecimal, int maxDigitsRightOfDecimal, char expChar, boolean expSign, int minExpDigits, char thousandChar)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isExceptional

boolean isExceptional

isNegative

boolean isNegative

decExponent

int decExponent

digits

char[] digits

nDigits

int nDigits

signMask

static final long signMask
See Also:
Constant Field Values

expMask

static final long expMask
See Also:
Constant Field Values

fractMask

static final long fractMask
See Also:
Constant Field Values

expShift

static final int expShift
See Also:
Constant Field Values

expBias

static final int expBias
See Also:
Constant Field Values

fractHOB

static final long fractHOB
See Also:
Constant Field Values

expOne

static final long expOne
See Also:
Constant Field Values

maxSmallBinExp

static final int maxSmallBinExp
See Also:
Constant Field Values

minSmallBinExp

static final int minSmallBinExp
See Also:
Constant Field Values

highbyte

static final long highbyte
See Also:
Constant Field Values

highbit

static final long highbit
See Also:
Constant Field Values

lowbytes

static final long lowbytes
See Also:
Constant Field Values

singleSignMask

static final int singleSignMask
See Also:
Constant Field Values

singleExpMask

static final int singleExpMask
See Also:
Constant Field Values

singleFractMask

static final int singleFractMask
See Also:
Constant Field Values

singleExpShift

static final int singleExpShift
See Also:
Constant Field Values

singleFractHOB

static final int singleFractHOB
See Also:
Constant Field Values

singleExpBias

static final int singleExpBias
See Also:
Constant Field Values
Constructor Detail

Format.FloatingDecimal

public Format.FloatingDecimal(double d)

Format.FloatingDecimal

public Format.FloatingDecimal(float f)

Format.FloatingDecimal

public Format.FloatingDecimal(long n)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

toJavaFormatString

public String toJavaFormatString()

shift

public void shift(int i)

toJavaFormatString

public String toJavaFormatString(int minDigitsLeftOfDecimal,
                                 char decimalChar,
                                 int minDigitsRightOfDecimal,
                                 int maxDigitsRightOfDecimal,
                                 char expChar,
                                 boolean expSign,
                                 int minExpDigits,
                                 char thousandChar)

SourceForge.net_Logo