VoltDB.ThirdParty.Math.BigDecimal.MovePointRight C# (CSharp) Method

MovePointRight() public method

public MovePointRight ( int n ) : BigDecimal
n int
return BigDecimal
        public BigDecimal MovePointRight(int n)
        {
            if (n >= 0)
            {
                if (_Scale >= n)
                    return new BigDecimal(_BigIntegerNumber, _Scale - n);
                else
                {
                    BigInteger num = _BigIntegerNumber;
                    for (int i = 0; i < n - _Scale; i++)
                        num *= _BigIntegerTen;

                    return new BigDecimal(num);
                }
            }
            else
                return MovePointLeft(-n);
        }