Exemple #1
0
 public static double operator -(NumeroDecimal d, NumeroBinario b)
 {
     return(d.num - Conversor.BinarioDecimal(b.num));
 }
Exemple #2
0
 public static string operator -(NumeroBinario b, NumeroDecimal d)
 {
     return(Conversor.DecimalBinario(Conversor.BinarioDecimal(b.num) - d.num));
 }
Exemple #3
0
 public static bool operator ==(NumeroDecimal d, NumeroBinario b)
 {
     return(d.num == Conversor.BinarioDecimal(b.num));
 }
Exemple #4
0
 public static bool operator ==(NumeroBinario b, NumeroDecimal d)
 {
     return(b.num == Conversor.DecimalBinario(d.num));
 }