This documentation is compiled for the latest release of Mathos Core Library
Top
Top
The Fraction type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Equals | (Overrides ValueTypeEquals(Object).) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| FromSternBrocotSystem |
Convert a fraction in Stern-Brocot system to a fraction.
| |
| GetHashCode | (Overrides ValueTypeGetHashCode.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Inverse |
Find the invers
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Simplify |
Simplify a fraction
| |
| ToCondensedSternBrocotSystem |
This method will convert a SternBrocot represented fraction, eg. LLRRLR and convert it to a condensed form.
| |
| ToDecimal | ||
| ToDouble | ||
| ToInt64 | ||
| ToSternBrocotSystem |
Convert the fraction into a Stern-Brocot system
| |
| ToSternBrocotSystem(Decimal, Boolean, Int32) |
Converts a decimal to Stern-Brocot number system consisting of L's and R's. In order to convert a fraction, use the non-static method inside the fraction class.
| |
| ToString | (Overrides ValueTypeToString.) |
Extension Methods
| Name | Description | |
|---|---|---|
| From(Enum) | Overloaded. (Defined by Converter.) | |
| From(Base) | Overloaded. (Defined by Converter.) |
See Also