Exemplo n.º 1
0
        //********************* ToString members **********************
        public String ToQuickString()
        {
            powersOfTen = new List<BigInt>();
            powersOfTen.Add(new BigInt((int)1, new PrecisionSpec(1, PrecisionSpec.BaseType.DEC)));

            for (BigInt i = new BigInt((int)10, new PrecisionSpec(1, PrecisionSpec.BaseType.DEC)); i.LessThan(this); i *= i)
            {
                powersOfTen.Add(i);
            }

            return BuildString(this, powersOfTen.Count - 1).TrimStart('0');
        }