Пример #1
0
        public static ulong convert(string numStr, byte orgSys)
        {
            ulong result = 0;

            for (int i = 0; i < numStr.Length; i++)
            {
                result = result * orgSys + (ulong)(Digits.Dec(numStr.ElementAt(i)));
            }
            return(result);
        }
Пример #2
0
 public static string convert(string numStr, char orgSys, char dstSys)
 {
     return(convert(numStr, (byte)(Digits.Dec(orgSys) + 1), (byte)(Digits.Dec(dstSys) + 1)));
 }