Fraction MethodsMathos Core Library 1.0.5.1 (changeset 39720)
This documentation is compiled for the latest release of Mathos Core Library

The Fraction type exposes the following members.

Methods

  NameDescription
Public methodEquals (Overrides ValueTypeEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberCode exampleFromSternBrocotSystem
Convert a fraction in Stern-Brocot system to a fraction.
Public methodGetHashCode (Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInverse
Find the invers
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSimplify
Simplify a fraction
Public methodStatic memberToCondensedSternBrocotSystem
This method will convert a SternBrocot represented fraction, eg. LLRRLR and convert it to a condensed form.
Public methodToDecimal
Public methodToDouble
Public methodToInt64
Public methodCode exampleToSternBrocotSystem
Convert the fraction into a Stern-Brocot system
Public methodStatic memberToSternBrocotSystem(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.
Public methodToString (Overrides ValueTypeToString.)
Top
Extension Methods

  NameDescription
Public Extension MethodFrom(Enum)Overloaded.
(Defined by Converter.)
Public Extension MethodFrom(Base)Overloaded.
(Defined by Converter.)
Top
See Also

Reference