# C1.Framework.Mathematics.Fraction

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_Mathematics_Fraction" data-uid="C1.Framework.Mathematics.Fraction" class="text-break">Fraction Struct
</h1>
  <div class="markdown level0 summary"><p>Represents nn expression that indicates the quotient of two quantities.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Framework.Mathematics.html">C1.Framework.Mathematics</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.C1Input.4.8.dll</h6>
  <h5 id="C1_Framework_Mathematics_Fraction_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public struct Fraction</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Structure Fraction</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction__ctor_System_Double_System_Double_" data-uid="C1.Framework.Mathematics.Fraction.#ctor(System.Double,System.Double)">
          <a class="xref" href="C1.Framework.Mathematics.Fraction.-ctor.html#C1_Framework_Mathematics_Fraction__ctor_System_Double_System_Double_">Fraction(double, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Framework.Mathematics.Fraction.html">Fraction</a> structure with the specified numerator and denominator.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_Denominator" data-uid="C1.Framework.Mathematics.Fraction.Denominator">
          <a class="xref" href="C1.Framework.Mathematics.Fraction.Denominator.html#C1_Framework_Mathematics_Fraction_Denominator">Denominator</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the denominator of the fraction.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_Numerator" data-uid="C1.Framework.Mathematics.Fraction.Numerator">
          <a class="xref" href="C1.Framework.Mathematics.Fraction.Numerator.html#C1_Framework_Mathematics_Fraction_Numerator">Numerator</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the numertor of the fraction.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_Reverse_C1_Framework_Mathematics_Fraction_" data-uid="C1.Framework.Mathematics.Fraction.Reverse(C1.Framework.Mathematics.Fraction)">
          <a class="xref" href="C1.Framework.Mathematics.Fraction.Reverse.html#C1_Framework_Mathematics_Fraction_Reverse_C1_Framework_Mathematics_Fraction_">Reverse(Fraction)</a>
        </td>
        <td class="markdown level1 summary"><p>Reverse the fraction.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_Simplify" data-uid="C1.Framework.Mathematics.Fraction.Simplify">
          <a class="xref" href="C1.Framework.Mathematics.Fraction.Simplify.html#C1_Framework_Mathematics_Fraction_Simplify">Simplify()</a>
        </td>
        <td class="markdown level1 summary"><p>Simplify the fraction.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_op_Addition_C1_Framework_Mathematics_Fraction_C1_Framework_Mathematics_Fraction_" data-uid="C1.Framework.Mathematics.Fraction.op_Addition(C1.Framework.Mathematics.Fraction,C1.Framework.Mathematics.Fraction)">
          <a class="xref" href="C1.Framework.Mathematics.Fraction.op_Addition.html#C1_Framework_Mathematics_Fraction_op_Addition_C1_Framework_Mathematics_Fraction_C1_Framework_Mathematics_Fraction_">operator +(Fraction, Fraction)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the binary &quot;+&quot; operator.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_op_Division_C1_Framework_Mathematics_Fraction_C1_Framework_Mathematics_Fraction_" data-uid="C1.Framework.Mathematics.Fraction.op_Division(C1.Framework.Mathematics.Fraction,C1.Framework.Mathematics.Fraction)">
          <a class="xref" href="C1.Framework.Mathematics.Fraction.op_Division.html#C1_Framework_Mathematics_Fraction_op_Division_C1_Framework_Mathematics_Fraction_C1_Framework_Mathematics_Fraction_">operator /(Fraction, Fraction)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the binary &quot;/&quot; operator.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_op_Division_C1_Framework_Mathematics_Fraction_System_Double_" data-uid="C1.Framework.Mathematics.Fraction.op_Division(C1.Framework.Mathematics.Fraction,System.Double)">
          <a class="xref" href="C1.Framework.Mathematics.Fraction.op_Division.html#C1_Framework_Mathematics_Fraction_op_Division_C1_Framework_Mathematics_Fraction_System_Double_">operator /(Fraction, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the binary &quot;/&quot; operator.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_op_Division_System_Double_C1_Framework_Mathematics_Fraction_" data-uid="C1.Framework.Mathematics.Fraction.op_Division(System.Double,C1.Framework.Mathematics.Fraction)">
          <a class="xref" href="C1.Framework.Mathematics.Fraction.op_Division.html#C1_Framework_Mathematics_Fraction_op_Division_System_Double_C1_Framework_Mathematics_Fraction_">operator /(double, Fraction)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the binary &quot;/&quot; operator.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_op_Implicit_C1_Framework_Mathematics_Fraction__System_Double" data-uid="C1.Framework.Mathematics.Fraction.op_Implicit(C1.Framework.Mathematics.Fraction)~System.Double">
          <a class="xref" href="C1.Framework.Mathematics.Fraction.op_Implicit.html#C1_Framework_Mathematics_Fraction_op_Implicit_C1_Framework_Mathematics_Fraction__System_Double">implicit operator double(Fraction)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the fraction to double.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_op_Implicit_System_Double__C1_Framework_Mathematics_Fraction" data-uid="C1.Framework.Mathematics.Fraction.op_Implicit(System.Double)~C1.Framework.Mathematics.Fraction">
          <a class="xref" href="C1.Framework.Mathematics.Fraction.op_Implicit.html#C1_Framework_Mathematics_Fraction_op_Implicit_System_Double__C1_Framework_Mathematics_Fraction">implicit operator Fraction(double)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the double to fraction.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_op_LogicalNot_C1_Framework_Mathematics_Fraction_" data-uid="C1.Framework.Mathematics.Fraction.op_LogicalNot(C1.Framework.Mathematics.Fraction)">
          <a class="xref" href="C1.Framework.Mathematics.Fraction.op_LogicalNot.html#C1_Framework_Mathematics_Fraction_op_LogicalNot_C1_Framework_Mathematics_Fraction_">operator !(Fraction)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the &quot;!&quot; operator. Note: &quot;!&quot; is used as simplify in here.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_op_Multiply_C1_Framework_Mathematics_Fraction_C1_Framework_Mathematics_Fraction_" data-uid="C1.Framework.Mathematics.Fraction.op_Multiply(C1.Framework.Mathematics.Fraction,C1.Framework.Mathematics.Fraction)">
          <a class="xref" href="C1.Framework.Mathematics.Fraction.op_Multiply.html#C1_Framework_Mathematics_Fraction_op_Multiply_C1_Framework_Mathematics_Fraction_C1_Framework_Mathematics_Fraction_">operator *(Fraction, Fraction)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the binary &quot;*&quot; operator.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_op_Multiply_C1_Framework_Mathematics_Fraction_System_Double_" data-uid="C1.Framework.Mathematics.Fraction.op_Multiply(C1.Framework.Mathematics.Fraction,System.Double)">
          <a class="xref" href="C1.Framework.Mathematics.Fraction.op_Multiply.html#C1_Framework_Mathematics_Fraction_op_Multiply_C1_Framework_Mathematics_Fraction_System_Double_">operator *(Fraction, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the binary &quot;*&quot; operator.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_op_Multiply_System_Double_C1_Framework_Mathematics_Fraction_" data-uid="C1.Framework.Mathematics.Fraction.op_Multiply(System.Double,C1.Framework.Mathematics.Fraction)">
          <a class="xref" href="C1.Framework.Mathematics.Fraction.op_Multiply.html#C1_Framework_Mathematics_Fraction_op_Multiply_System_Double_C1_Framework_Mathematics_Fraction_">operator *(double, Fraction)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the binary &quot;*&quot; operator.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_op_Subtraction_C1_Framework_Mathematics_Fraction_C1_Framework_Mathematics_Fraction_" data-uid="C1.Framework.Mathematics.Fraction.op_Subtraction(C1.Framework.Mathematics.Fraction,C1.Framework.Mathematics.Fraction)">
          <a class="xref" href="C1.Framework.Mathematics.Fraction.op_Subtraction.html#C1_Framework_Mathematics_Fraction_op_Subtraction_C1_Framework_Mathematics_Fraction_C1_Framework_Mathematics_Fraction_">operator -(Fraction, Fraction)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the binary &quot;-&quot; operator.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_op_UnaryNegation_C1_Framework_Mathematics_Fraction_" data-uid="C1.Framework.Mathematics.Fraction.op_UnaryNegation(C1.Framework.Mathematics.Fraction)">
          <a class="xref" href="C1.Framework.Mathematics.Fraction.op_UnaryNegation.html#C1_Framework_Mathematics_Fraction_op_UnaryNegation_C1_Framework_Mathematics_Fraction_">operator -(Fraction)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the unary &quot;-&quot; operator.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
