/// <summary> /// Converts the numeric value of this instance to its equivalent string representation using /// the specified culture-specific format information. /// </summary> /// <param name="provider"> /// An object that supplies culture-specific formatting information. /// </param> /// <returns>A string representation of this value.</returns> public string ToString(IFormatProvider provider) { var rational = new BigRational(Numerator, Denominator); return(rational.ToString(provider)); }
/// <summary> /// Serves as a hash of this type. /// </summary> /// <returns>A hash code for the current instance.</returns> public override int GetHashCode() { var self = new BigRational(Numerator, Denominator); return(self.GetHashCode()); }