//Compares this fraction with another fraction. //Returns true if the decimal values are equals; false otherwise. public override bool Equals(object obj) { Fraction other = (Fraction)obj; return(getAsDoubleValue() == other.getAsDoubleValue()); }