Exemple #1
0
        // Hexadecimal
        public static Decimal HexadecimalToDecimal(Hexadecimal Value)
        {
            Decimal Decimal = 0;

            for (int i = 0; i < Value.Value.Length; i++)
            {
                Decimal += ToNumber(Value.Value[(Value.Value.Length - 1) - i]) * (int)Math.Pow(16, i);
            }

            return(Decimal);
        }
Exemple #2
0
 public static Hexadecimal HexadecimalToHexadecimal(Hexadecimal Value)
 {
     return(DecimalToHexadecimal(HexadecimalToDecimal(Value)));
 }
Exemple #3
0
 public static Binary HexadecimalToBinary(Hexadecimal Value)
 {
     return(DecimalToBinary(HexadecimalToDecimal(Value)));
 }