public static string DecToHex(string decimalThings, int formatLength) { var system16Val = ScaleConvHelper.ThingsToThings(decimalThings, 10, 16); return(system16Val.Length > formatLength ? system16Val : system16Val.PadLeft(formatLength, '0')); }
public static string DecToHex(string decimalThings) { return(ScaleConvHelper.ThingsToThings(decimalThings, 10, 16)); }
public static string DecToBin(byte decimalThings) { return(ScaleConvHelper.ThingsToThings(decimalThings.ToString(), 10, 2)); }
public static string BinToHex(string binaryThings) { return(ScaleConvHelper.ThingsToThings(binaryThings, 2, 16)); }
public static int BinToDec(string binaryThings) { return(Convert.ToInt32(ScaleConvHelper.ThingsToThings(binaryThings, 2, 10))); }
public static string X2X(string things, int baseOfSource, int baseOfTarget) { return(ScaleConvHelper.ThingsToThings(things, baseOfSource, baseOfTarget)); }
public static string HexToBin(string hexadecimalThings) { return(ScaleConvHelper.ThingsToThings(hexadecimalThings, 16, 2)); }