public static interface FloatingDecimal.BinaryToASCIIConverter
String
representation.Modifier and Type | Method and Description |
---|---|
void |
appendTo(java.lang.Appendable buf)
Appends a floating point value to an
Appendable . |
boolean |
decimalDigitsExact()
Indicates whether the binary to ASCII conversion was exact.
|
boolean |
digitsRoundedUp()
Indicates whether the value was rounded up during the binary to ASCII conversion.
|
int |
getDecimalExponent()
Retrieves the decimal exponent most closely corresponding to this value.
|
int |
getDigits(char[] digits)
Retrieves the value as an array of digits.
|
boolean |
isExceptional()
Indicates whether the value is either infinite or not a number.
|
boolean |
isNegative()
Indicates the sign of the value.
|
java.lang.String |
toJavaFormatString()
Converts a floating point value into an ASCII
String . |
java.lang.String toJavaFormatString()
String
.String
.void appendTo(java.lang.Appendable buf)
Appendable
.buf
- The Appendable
to receive the value.int getDecimalExponent()
int getDigits(char[] digits)
digits
- The digit array.boolean isNegative()
value < 0.0
.boolean isExceptional()
true
if and only if the value is NaN
or infinite.boolean digitsRoundedUp()
true
if and only if the value was rounded up.boolean decimalDigitsExact()
true
if any only if the conversion was exact.