Class SimpleBigDecimal

java.lang.Object
org.gudy.bouncycastle.math.ec.SimpleBigDecimal

class SimpleBigDecimal extends Object
Class representing a simple version of a big decimal. A SimpleBigDecimal is basically a 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 BigDecimal, the scale is not adjusted automatically, but must be set manually. All SimpleBigDecimals taking part in the same arithmetic operation must have equal scale. The result of a multiplication of two SimpleBigDecimals returns a SimpleBigDecimal with double scale.