public static double operator -(NumeroDecimal dec, NumeroBinario bin)
 {
     return((double)dec - Conversor.BinarioDecimal((string)bin));
 }
 public static bool operator ==(NumeroDecimal dec, NumeroBinario bin)
 {
     return(Conversor.DecimalBinario((double)dec) == (string)bin);
 }
예제 #3
0
 public static bool operator ==(NumeroBinario bin, NumeroDecimal dec)
 {
     return(Conversor.BinarioDecimal((string)bin) == (double)dec);
 }