com.ibm.eou.decimal
Class DecimalConstants.DecimalEncoding

java.lang.Object
  |
  +--com.ibm.eou.decimal.DecimalConstants.DecimalEncoding
Enclosing class:
DecimalConstants

public static class DecimalConstants.DecimalEncoding
extends java.lang.Object

This class represents an encoding specification.

See Also:
DecimalConstants.DECIMAL32, DecimalConstants.DECIMAL64, DecimalConstants.DECIMAL128

Method Summary
 int getMaximumEncodableExponent()
          Return the maximum encodable exponent in this encoding.
 int getMinimumEncodableExponent()
          Return the minimum encodable exponent in this encoding.
 int getNumberOfBits()
          Return the number of bits used by this encoding.
 int getNumberOfCoefficientDigits()
          Return the number of coefficient digits accommodated by this encoding.
 int getNumberOfExponentContinuationBits()
          Return the number of exponent continuation bits accommodated by this encoding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNumberOfBits

public int getNumberOfBits()
Return the number of bits used by this encoding.

Returns:
the number of bits.

getNumberOfCoefficientDigits

public int getNumberOfCoefficientDigits()
Return the number of coefficient digits accommodated by this encoding.

Returns:
the number of coefficient digits.

getNumberOfExponentContinuationBits

public int getNumberOfExponentContinuationBits()
Return the number of exponent continuation bits accommodated by this encoding.

Returns:
the number of exponent continuation bits.

getMinimumEncodableExponent

public int getMinimumEncodableExponent()
Return the minimum encodable exponent in this encoding.

Returns:
the minimum encodable exponent.

getMaximumEncodableExponent

public int getMaximumEncodableExponent()
Return the maximum encodable exponent in this encoding.

Returns:
the maximum encodable exponent.