| |
|
| java.lang.Object org.bouncycastle.math.ec.SimpleBigDecimal
SimpleBigDecimal | class SimpleBigDecimal (Code) | | Class representing a simple version of a big decimal. A
SimpleBigDecimal is basically a
java.math.BigInteger BigInteger with a few digits on the right of
the decimal point. The number of (binary) digits on the right of the decimal
point is called the scale of the SimpleBigDecimal .
Unlike in
java.math.BigDecimal BigDecimal , the scale is not adjusted
automatically, but must be set manually. All SimpleBigDecimal s
taking part in the same arithmetic operation must have equal scale. The
result of a multiplication of two SimpleBigDecimal s returns a
SimpleBigDecimal with double scale.
|
SimpleBigDecimal | public SimpleBigDecimal(BigInteger bigInt, int scale)(Code) | | Constructor for SimpleBigDecimal . The value of the
constructed SimpleBigDecimal equals bigInt /
2scale .
Parameters: bigInt - The bigInt value parameter. Parameters: scale - The scale of the constructed SimpleBigDecimal . |
doubleValue | public double doubleValue()(Code) | | |
floatValue | public float floatValue()(Code) | | |
getInstance | public static SimpleBigDecimal getInstance(BigInteger value, int scale)(Code) | | Returns a SimpleBigDecimal representing the same numerical
value as value .
Parameters: value - The value of the SimpleBigDecimal to becreated. Parameters: scale - The scale of the SimpleBigDecimal to becreated. The such created SimpleBigDecimal . |
getScale | public int getScale()(Code) | | |
hashCode | public int hashCode()(Code) | | |
intValue | public int intValue()(Code) | | |
longValue | public long longValue()(Code) | | |
|
|
|