Esempio n. 1
0
 public override bool Equals(Number other)
 {
     if (other == null)
     {
         return(false);
     }
     DoubleNumber rhs = Cast(other); return(this.Value == rhs.Value);
 }
Esempio n. 2
0
 public override Number Divide(Number other)
 {
     DoubleNumber rhs = Cast(other); return(new DoubleNumber(this.Value / rhs.Value));
 }
Esempio n. 3
0
 public override Number Subtract(Number other)
 {
     DoubleNumber rhs = Cast(other); return(new DoubleNumber(this.Value - rhs.Value));
 }
Esempio n. 4
0
 public override Number Multiply(Number other)
 {
     DoubleNumber rhs = Cast(other); return(new DoubleNumber(this.Value * rhs.Value));
 }
Esempio n. 5
0
 public override Number Add(Number other)
 {
     DoubleNumber rhs = Cast(other); return(new DoubleNumber(this.Value + rhs.Value));
 }