Click or drag to resize
BigRational Methods

[This is preliminary documentation and is subject to change.]

The BigRational type exposes the following members.

Methods
  Name Description
Public method Static member Abs
Get the absolute value of the specified r.
Public method Static member Add
Adds the specified x and y.
Public method Static member Compare
Compares the specified r1.
Public method CompareTo
Compares the current object with another object of the same type.
Public method Static member Divide
Divides the specified dividend.
Public method Static member DivRem
Get the remainder of the division.
Public method Equals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public method Equals(BigRational)
Indicates whether the current object is equal to another object of the same type. a/b = c/d, iff ad = bc
Public method GetFractionPart
GetWholePart() and GetFractionPart()
BigRational == Whole, Fraction
0/2        ==     0,  0/2
1/2        ==     0,  1/2
-1/2        ==     0, -1/2
1/1        ==     1,  0/1
-1/1        ==    -1,  0/1
-3/2        ==    -1, -1/2
3/2        ==     1,  1/2
Public method GetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method GetWholePart
GetWholePart() and GetFractionPart()
BigRational == Whole, Fraction
0/2        ==     0,  0/2
1/2        ==     0,  1/2
-1/2        ==     0, -1/2
1/1        ==     1,  0/1
-1/1        ==    -1,  0/1
-3/2        ==    -1, -1/2
3/2        ==     1,  1/2
Public method Static member Invert
Inverts the specified r.
Public method Static member LeastCommonDenominator
Least Common Denominator (LCD) The LCD is the least common multiple of the two denominators. For instance, the LCD of {1/2, 1/4} is 4 because the least common multiple of 2 and 4 is 4. Likewise, the LCD of {1/2, 1/3} is 6. To find the LCD: 1) Find the Greatest Common Divisor (GCD) of the denominators 2) Multiply the denominators together 3) Divide the product of the denominators by the GCD
Public method Static member Multiply
Multiplies the specified x and y.
Public method Static member Negate
Negates the specified r.
Public method Static member Pow
Gets the powers the specified base value.
Public method Static member Remainder
Calculates the remainder.
Public method Static member Subtract
Subtracts y from the specified x.
Public method ToString
Returns the fully qualified type name of this instance.
(Overrides ValueTypeToString.)
Public method Static member TryParse
Tries to parse.
Top
See Also