public static Rac operator *(Rac r1, Rac RacObj) { Rac RacResult = new Rac(r1.n * RacObj.n, r1.d * RacObj.d); RacResult.set_mcd(RacResult.calc_mcd()); RacResult.simplificar(); return(RacResult); }
public static Rac operator /(Rac r1, Rac RacObj) { //Rac RacR; Rac RacResult = new Rac(); RacResult.n = r1.n * RacObj.d; RacResult.d = r1.d * RacObj.n; RacResult.set_mcd(RacResult.calc_mcd()); RacResult.simplificar(); return(RacResult); }