|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.eou.decimal.DecimalDecoder
This class provides static library methods for interpreting and decoding binary representations of decimal floating-point numbers using the decimal32, decimal64 and decimal128 formats.
Method Summary | |
static ModelNumber |
decodeDecimal(BitString bits)
Return a floating-point number obtained by parsing binary encodings of decimal floating-point numbers in the decimal32, decimal64 and decimal128 formats. |
static DecimalConstants.DecimalEncoding |
getEncodingForNumberOfBits(int numberOfBits)
Return the encoding which uses the specified number of bits. |
static java.lang.String |
toDecimalEngineeringString(ModelNumber value)
Return a string representation of the specified value in decimal 'Engineering' format. |
static java.lang.String |
toDecimalScientificString(ModelNumber value)
Return a string representation of the specified value in decimal 'Scientific' format. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ModelNumber decodeDecimal(BitString bits)
bits
- a bit field containing a DecimalNNN encoded value.
public static DecimalConstants.DecimalEncoding getEncodingForNumberOfBits(int numberOfBits)
java.lang.IllegalArgumentException
- if there is no matching encoding.public static java.lang.String toDecimalScientificString(ModelNumber value)
java.lang.IllegalArgumentException
- if the value is finite
and its coefficient is not expressed with a radix of 10.public static java.lang.String toDecimalEngineeringString(ModelNumber value)
java.lang.IllegalArgumentException
- if the value is finite
and its coefficient is not expressed with a radix of 10.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |