Export (0) Print
Expand All

Rational Methods

Solver Foundation 3.0

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

The Rational type exposes the following members.

  Name Description
Public method Static member AddMul Performs and optimizes the operation ratAdd + ratMul1 * ratMul2.
Public method AppendDecimalString Appends characters to a string.
Public method CompareTo(Double) Compares a rational number to a double.
Public method CompareTo(Int32) Compares a rational number to an integer.
Public method CompareTo(Int64) Compares a rational number to a long integer.
Public method CompareTo(Object) Compares a rational number to another number (Int32, UInt32, Double, Int64, UInt64, Rational, or BigInteger).
Public method CompareTo(UInt32) Compares a rational number to an unsigned integer.
Public method CompareTo(UInt64) Compares a rational number to an unsigned long integer.
Public method CompareTo(BigInteger) Compares a rational number to a big integer.
Public method CompareTo(Rational) Compares a rational number to another rational number.
Public method Equals(Double) Returns a value that indicates whether a rational number is equal to a double.
Public method Equals(Int32) Returns a value that indicates whether a rational number is equal to an integer.
Public method Equals(Int64) Returns a value that indicates whether a rational number is equal to a long integer.
Public method Equals(Object) Returns a value that indicates whether a rational number is equal to another number (Int32, UInt32, Double, Int64, UInt64, Rational, or BigInteger). (Overrides ValueType.Equals(Object).)
Public method Equals(UInt32) Returns a value that indicates whether a rational number is equal to an unsigned integer.
Public method Equals(UInt64) Returns a value that indicates whether a rational number is equal to an unsigned long integer.
Public method Equals(BigInteger) Returns a value that indicates whether a rational number is equal to a big integer.
Public method Equals(Rational) Returns a value that indicates whether a rational number is equal to another rational number.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member Get Creates a rational number by dividing one big integer by another.
Public method GetCeiling Returns the ceiling of a rational number.
Public method GetCeilingResidual Returns the ceiling residual of a rational number.
Public method GetFloor Returns the floor of a rational number.
Public method GetFloorResidual Returns the floor residual of a rational number.
Public method GetFractionalPart Returns the fractional part of a rational number.
Public method GetHashCode Returns the hash code of a rational number. (Overrides ValueType.GetHashCode().)
Public method GetIntegerPart Returns the integer part of a rational number.
Public method GetSignedDouble Converts a rational number to a signed double.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Invert Inverts the sign of a rational number.
Public method IsInteger() Returns a value that indicates whether a number is an integer.
Public method IsInteger(BigInteger) Returns a value that indicates whether a number is an integer, and clones the integer.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member Negate Negates the sign of a rational number.
Public method Static member Power Returns a value that indicates whether a rational number was raised to the power of another rational number successfully.
Public method ToDouble Converts a rational number to the nearest double.
Public method ToString Converts a rational number to its equivalent string representation. (Overrides ValueType.ToString().)
Top
Show:
© 2015 Microsoft