class MondrianFloatingDecimal extends Object
| Modifier and Type | Field and Description | 
|---|---|
(package private) int | 
decExponent  | 
(package private) char[] | 
digits  | 
(package private) boolean | 
isExceptional  | 
(package private) boolean | 
isNegative  | 
(package private) int | 
nDigits  | 
| Constructor and Description | 
|---|
MondrianFloatingDecimal(double d)  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
formatExponent(char[] result,
              int i,
              boolean expSign,
              int minExpDigits)
Appends  
decExponent to result string. | 
String | 
toString()  | 
boolean isExceptional
boolean isNegative
int decExponent
char[] digits
int nDigits
public int formatExponent(char[] result,
                 int i,
                 boolean expSign,
                 int minExpDigits)
decExponent to result string. Returns i plus the
 number of chars written.
 Implementation may assume that exponent has 3 or fewer digits.
For example, given decExponent = 2,
 formatExponent(result, 5, true, 2)
 will write '0' into result[5]
 and '2' into result[6] and return 7.
result - Result bufferi - Initial offset into result bufferexpSign - Whether to print a '+' sign if exponent is positive
                (always prints '-' if negative)minExpDigits - Minimum number of digits to write