Ejemplo n.º 1
0
        public string toString(uint param1)
        {
            uint _loc4_ = 0;

            if (this.high == 0)
            {
                return(low.ToString());
            }
            List <char> _loc2_ = new List <char>();
            UInt64      _loc3_ = new UInt64((uint)low, (uint)this.high);

            do
            {
                _loc4_ = _loc3_.div(param1);
                if (_loc4_ < 10)
                {
                    _loc2_.Add((char)(_loc4_ + CHAR_CODE_0));
                }
                else
                {
                    _loc2_.Add((char)(_loc4_ - 10 + CHAR_CODE_A));
                }
            }while (_loc3_.high != 0);
            _loc2_.Reverse();
            return(_loc3_.low.ToString() + _loc2_);
        }
Ejemplo n.º 2
0
        public string toString(uint param1)
        {
            uint _loc4_ = 0;

            switch (high)
            {
            case 0:
                return(low.ToString());

            case -1:
                if (low == 0 && 2.147483648E9 == 0)
                {
                    return(Convert.ToString((low | (uint)2.147483648E9) - 2.147483648E9));
                }
                return(low.ToString());

            default:
                if (low == 0 && this.high == 0)
                {
                    return("0");
                }
                List <char> _loc2_ = new List <char>();
                UInt64      _loc3_ = new UInt64((uint)low, (uint)this.high);
                if (this.high < 0)
                {
                    _loc3_.add(1);
                }
                do
                {
                    _loc4_ = _loc3_.div(param1);
                    if (_loc4_ < 10)
                    {
                        _loc2_.Add((char)(_loc4_ + CHAR_CODE_0));
                    }
                    else
                    {
                        _loc2_.Add((char)(_loc4_ - 10 + CHAR_CODE_A));
                    }
                }while (_loc3_.high != 0);
                _loc2_.Reverse();
                if (this.high < 0)
                {
                    return("-" + _loc3_.low.ToString() + _loc2_);
                }
                return(_loc3_.low.ToString() + _loc2_);
            }
        }