Inverse() public méthode

Inverts a Fraction
Does NOT throw for zero Numerators as later use of the fraction will catch the error.
public Inverse ( ) : Fraction
Résultat Fraction
Exemple #1
0
 /// <summary>
 /// Creates an inverted Fraction
 /// </summary>
 /// <returns>The inverted Fraction (with Denominator over Numerator)</returns>
 /// <remarks>Does NOT throw for zero Numerators as later use of the fraction will catch the error.</remarks>
 public static Fraction Inverted(double value)
 {
     Fraction frac = new Fraction(value);
     return frac.Inverse();
 }