# C1.Framework.Mathematics.Fraction-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_Mathematics_Fraction_1" data-uid="C1.Framework.Mathematics.Fraction`1" class="text-break">Fraction&lt;T&gt; 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_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public struct Fraction&lt;T&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Structure Fraction(Of T)</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td><p>Indicate the type of numerator and denominator.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_1__ctor__0_" data-uid="C1.Framework.Mathematics.Fraction`1.#ctor(`0)">
          <a class="xref" href="C1.Framework.Mathematics.Fraction-1.-ctor.html#C1_Framework_Mathematics_Fraction_1__ctor__0_">Fraction(T)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Framework.Mathematics.Fraction-1.html">Fraction&lt;T&gt;</a> structure with the specified numerator and denominator.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_1__ctor__0__0_" data-uid="C1.Framework.Mathematics.Fraction`1.#ctor(`0,`0)">
          <a class="xref" href="C1.Framework.Mathematics.Fraction-1.-ctor.html#C1_Framework_Mathematics_Fraction_1__ctor__0__0_">Fraction(T, T)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Framework.Mathematics.Fraction-1.html">Fraction&lt;T&gt;</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_1_Denominator" data-uid="C1.Framework.Mathematics.Fraction`1.Denominator">
          <a class="xref" href="C1.Framework.Mathematics.Fraction-1.Denominator.html#C1_Framework_Mathematics_Fraction_1_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_1_Numerator" data-uid="C1.Framework.Mathematics.Fraction`1.Numerator">
          <a class="xref" href="C1.Framework.Mathematics.Fraction-1.Numerator.html#C1_Framework_Mathematics_Fraction_1_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_1_Reverse_C1_Framework_Mathematics_Fraction__0__" data-uid="C1.Framework.Mathematics.Fraction`1.Reverse(C1.Framework.Mathematics.Fraction{`0})">
          <a class="xref" href="C1.Framework.Mathematics.Fraction-1.Reverse.html#C1_Framework_Mathematics_Fraction_1_Reverse_C1_Framework_Mathematics_Fraction__0__">Reverse(Fraction&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Reverse the fraction.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_1_Simplify" data-uid="C1.Framework.Mathematics.Fraction`1.Simplify">
          <a class="xref" href="C1.Framework.Mathematics.Fraction-1.Simplify.html#C1_Framework_Mathematics_Fraction_1_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_1_op_Addition_C1_Framework_Mathematics_Fraction__0__C1_Framework_Mathematics_Fraction__0__" data-uid="C1.Framework.Mathematics.Fraction`1.op_Addition(C1.Framework.Mathematics.Fraction{`0},C1.Framework.Mathematics.Fraction{`0})">
          <a class="xref" href="C1.Framework.Mathematics.Fraction-1.op_Addition.html#C1_Framework_Mathematics_Fraction_1_op_Addition_C1_Framework_Mathematics_Fraction__0__C1_Framework_Mathematics_Fraction__0__">operator +(Fraction&lt;T&gt;, Fraction&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the binary &quot;+&quot; operator.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_1_op_Division_C1_Framework_Mathematics_Fraction__0__C1_Framework_Mathematics_Fraction__0__" data-uid="C1.Framework.Mathematics.Fraction`1.op_Division(C1.Framework.Mathematics.Fraction{`0},C1.Framework.Mathematics.Fraction{`0})">
          <a class="xref" href="C1.Framework.Mathematics.Fraction-1.op_Division.html#C1_Framework_Mathematics_Fraction_1_op_Division_C1_Framework_Mathematics_Fraction__0__C1_Framework_Mathematics_Fraction__0__">operator /(Fraction&lt;T&gt;, Fraction&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the binary &quot;/&quot; operator.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_1_op_Division_C1_Framework_Mathematics_Fraction__0___0_" data-uid="C1.Framework.Mathematics.Fraction`1.op_Division(C1.Framework.Mathematics.Fraction{`0},`0)">
          <a class="xref" href="C1.Framework.Mathematics.Fraction-1.op_Division.html#C1_Framework_Mathematics_Fraction_1_op_Division_C1_Framework_Mathematics_Fraction__0___0_">operator /(Fraction&lt;T&gt;, T)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the binary &quot;/&quot; operator.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_1_op_Division__0_C1_Framework_Mathematics_Fraction__0__" data-uid="C1.Framework.Mathematics.Fraction`1.op_Division(`0,C1.Framework.Mathematics.Fraction{`0})">
          <a class="xref" href="C1.Framework.Mathematics.Fraction-1.op_Division.html#C1_Framework_Mathematics_Fraction_1_op_Division__0_C1_Framework_Mathematics_Fraction__0__">operator /(T, Fraction&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the binary &quot;/&quot; operator.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_1_op_Explicit_System_Double__C1_Framework_Mathematics_Fraction__0_" data-uid="C1.Framework.Mathematics.Fraction`1.op_Explicit(System.Double)~C1.Framework.Mathematics.Fraction{`0}">
          <a class="xref" href="C1.Framework.Mathematics.Fraction-1.op_Explicit.html#C1_Framework_Mathematics_Fraction_1_op_Explicit_System_Double__C1_Framework_Mathematics_Fraction__0_">explicit operator Fraction&lt;T&gt;(double)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the double to fraction.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_1_op_Explicit_System_Single__C1_Framework_Mathematics_Fraction__0_" data-uid="C1.Framework.Mathematics.Fraction`1.op_Explicit(System.Single)~C1.Framework.Mathematics.Fraction{`0}">
          <a class="xref" href="C1.Framework.Mathematics.Fraction-1.op_Explicit.html#C1_Framework_Mathematics_Fraction_1_op_Explicit_System_Single__C1_Framework_Mathematics_Fraction__0_">explicit operator Fraction&lt;T&gt;(float)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the float to fraction.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_1_op_Implicit_C1_Framework_Mathematics_Fraction__0___System_Double" data-uid="C1.Framework.Mathematics.Fraction`1.op_Implicit(C1.Framework.Mathematics.Fraction{`0})~System.Double">
          <a class="xref" href="C1.Framework.Mathematics.Fraction-1.op_Implicit.html#C1_Framework_Mathematics_Fraction_1_op_Implicit_C1_Framework_Mathematics_Fraction__0___System_Double">implicit operator double(Fraction&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the fraction to double.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_1_op_Implicit_C1_Framework_Mathematics_Fraction__0___System_Single" data-uid="C1.Framework.Mathematics.Fraction`1.op_Implicit(C1.Framework.Mathematics.Fraction{`0})~System.Single">
          <a class="xref" href="C1.Framework.Mathematics.Fraction-1.op_Implicit.html#C1_Framework_Mathematics_Fraction_1_op_Implicit_C1_Framework_Mathematics_Fraction__0___System_Single">implicit operator float(Fraction&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the fraction to float.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_1_op_LogicalNot_C1_Framework_Mathematics_Fraction__0__" data-uid="C1.Framework.Mathematics.Fraction`1.op_LogicalNot(C1.Framework.Mathematics.Fraction{`0})">
          <a class="xref" href="C1.Framework.Mathematics.Fraction-1.op_LogicalNot.html#C1_Framework_Mathematics_Fraction_1_op_LogicalNot_C1_Framework_Mathematics_Fraction__0__">operator !(Fraction&lt;T&gt;)</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_1_op_Multiply_C1_Framework_Mathematics_Fraction__0__C1_Framework_Mathematics_Fraction__0__" data-uid="C1.Framework.Mathematics.Fraction`1.op_Multiply(C1.Framework.Mathematics.Fraction{`0},C1.Framework.Mathematics.Fraction{`0})">
          <a class="xref" href="C1.Framework.Mathematics.Fraction-1.op_Multiply.html#C1_Framework_Mathematics_Fraction_1_op_Multiply_C1_Framework_Mathematics_Fraction__0__C1_Framework_Mathematics_Fraction__0__">operator *(Fraction&lt;T&gt;, Fraction&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the binary &quot;*&quot; operator.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_1_op_Multiply_C1_Framework_Mathematics_Fraction__0___0_" data-uid="C1.Framework.Mathematics.Fraction`1.op_Multiply(C1.Framework.Mathematics.Fraction{`0},`0)">
          <a class="xref" href="C1.Framework.Mathematics.Fraction-1.op_Multiply.html#C1_Framework_Mathematics_Fraction_1_op_Multiply_C1_Framework_Mathematics_Fraction__0___0_">operator *(Fraction&lt;T&gt;, T)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the binary &quot;*&quot; operator.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_1_op_Multiply__0_C1_Framework_Mathematics_Fraction__0__" data-uid="C1.Framework.Mathematics.Fraction`1.op_Multiply(`0,C1.Framework.Mathematics.Fraction{`0})">
          <a class="xref" href="C1.Framework.Mathematics.Fraction-1.op_Multiply.html#C1_Framework_Mathematics_Fraction_1_op_Multiply__0_C1_Framework_Mathematics_Fraction__0__">operator *(T, Fraction&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the binary &quot;*&quot; operator.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_1_op_Subtraction_C1_Framework_Mathematics_Fraction__0__C1_Framework_Mathematics_Fraction__0__" data-uid="C1.Framework.Mathematics.Fraction`1.op_Subtraction(C1.Framework.Mathematics.Fraction{`0},C1.Framework.Mathematics.Fraction{`0})">
          <a class="xref" href="C1.Framework.Mathematics.Fraction-1.op_Subtraction.html#C1_Framework_Mathematics_Fraction_1_op_Subtraction_C1_Framework_Mathematics_Fraction__0__C1_Framework_Mathematics_Fraction__0__">operator -(Fraction&lt;T&gt;, Fraction&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the binary &quot;-&quot; operator.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Mathematics_Fraction_1_op_UnaryNegation_C1_Framework_Mathematics_Fraction__0__" data-uid="C1.Framework.Mathematics.Fraction`1.op_UnaryNegation(C1.Framework.Mathematics.Fraction{`0})">
          <a class="xref" href="C1.Framework.Mathematics.Fraction-1.op_UnaryNegation.html#C1_Framework_Mathematics_Fraction_1_op_UnaryNegation_C1_Framework_Mathematics_Fraction__0__">operator -(Fraction&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the unary &quot;-&quot; operator.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
