Esempio n. 1
0
 public Rational multiply(Rational rNum)
 {
     return(new Rational(((this.mone * rNum.mone)), (this.mechane * rNum.mechane)));
 }
Esempio n. 2
0
 public bool equals(Rational rationalNum)
 {
     return((this.mone * rationalNum.mechane) == (this.mechane * rationalNum.mone));
 }
Esempio n. 3
0
 public Rational minus(Rational rNum)
 {
     return(new Rational(((this.mone * rNum.mechane) - (this.mechane * rNum.mone)), (this.mechane * rNum.mechane)));
 }
Esempio n. 4
0
 public bool greaterThan(Rational rationalNum)
 {
     return((this.mone * rationalNum.mechane) > (this.mechane * rationalNum.mone));
 }