org.jcoderz.commons
Interface FixPointNumber

All Superinterfaces:
StrongType
All Known Implementing Classes:
SampleFixPoint, TestFixPoint, TestFixPointTwo

public interface FixPointNumber
extends StrongType

Interface that is supported by all FixPointNumber classes.

Author:
Andreas Mandel

Method Summary
 BigDecimal toBigDecimal()
          Returns the BigDecimal representation of this FixPointNumber.
 long unscaledLongValue()
          Returns the unscaled long value of this FixPointNumber.
 

Method Detail

unscaledLongValue

long unscaledLongValue()
Returns the unscaled long value of this FixPointNumber. The actual value is the returned value / DECIMAL_SCALE.

Returns:
The unscaled long value of this FixPointNumber.

toBigDecimal

BigDecimal toBigDecimal()
Returns the BigDecimal representation of this FixPointNumber.

Returns:
The BigDecimal representation of this FixPointNumber.


Copyright 2007 The jCoderZ Project.