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); }
public static string convert(string numStr, char orgSys, char dstSys) { return(convert(numStr, (byte)(Digits.Dec(orgSys) + 1), (byte)(Digits.Dec(dstSys) + 1))); }