AdjustScale() public method

public AdjustScale ( int newScale ) : SimpleBigDecimal
newScale int
return SimpleBigDecimal
        public BigInteger Round()
        {
            SimpleBigDecimal num = new SimpleBigDecimal(BigInteger.One, 1);

            return(this.Add(num.AdjustScale(this.scale)).Floor());
        }
 public IBigInteger Round()
 {
     SimpleBigDecimal oneHalf = new SimpleBigDecimal(BigInteger.One, 1);
     return Add(oneHalf.AdjustScale(scale)).Floor();
 }
Example #3
0
        public BigInteger Round()
        {
            SimpleBigDecimal oneHalf = new SimpleBigDecimal(BigInteger.One, 1);

            return(Add(oneHalf.AdjustScale(scale)).Floor());
        }