Click or drag to resize
Accord.NET (logo)

Rational Operators and Type Conversions

The Rational type exposes the following members.

Operators
  NameDescription
Public operatorStatic memberAddition
Adds two Rational values.
Public operatorStatic memberDecrement
Decrements a Rational value.
Public operatorStatic memberDivision
Divides two Rational values.
Public operatorStatic memberEquality
Gets whether two Rational values are numerically equivalent.
Public operatorStatic member(Decimal to Rational)
Converts the specified Decimal to a Rational.
Public operatorStatic member(Double to Rational)
Converts the specified Double to a Rational.
Public operatorStatic member(Single to Rational)
Converts the specified Single to a Rational.
Public operatorStatic member(Rational to Int32)
Converts the specified Rational to a Int32.
Public operatorStatic member(Rational to UInt32)
Converts the specified Rational to a UInt32.
Public operatorStatic member(Rational to Int16)
Converts the specified Rational to a Int16.
Public operatorStatic member(Rational to UInt16)
Converts the specified Rational to a UInt16.
Public operatorStatic member(Rational to Int64)
Converts the specified Rational to a Int64.
Public operatorStatic member(Rational to UInt64)
Converts the specified Rational to a UInt64.
Public operatorStatic member(Rational to SByte)
Converts the specified Rational to a SByte.
Public operatorStatic member(Rational to Byte)
Converts the specified Rational to a Byte.
Public operatorStatic member(Rational to Single)
Converts the specified Rational to a Single.
Public operatorStatic member(Rational to Double)
Converts the specified Rational to a Double.
Public operatorStatic member(Rational to Decimal)
Converts the specified Rational to a Decimal.
Public operatorStatic memberGreaterThan
Gets whether a Rational values is greater than another.
Public operatorStatic memberGreaterThanOrEqual
Gets whether a Rational values is greater than or equal to another.
Public operatorStatic member(Byte to Rational)
Converts the specified Byte to a Rational.
Public operatorStatic member(Int16 to Rational)
Converts the specified Int16 to a Rational.
Public operatorStatic member(Int32 to Rational)
Converts the specified Int32 to a Rational.
Public operatorStatic member(Int64 to Rational)
Converts the specified Int64 to a Rational.
Public operatorStatic member(SByte to Rational)
Converts the specified SByte to a Rational.
Public operatorStatic member(UInt16 to Rational)
Converts the specified UInt16 to a Rational.
Public operatorStatic member(UInt32 to Rational)
Converts the specified UInt32 to a Rational.
Public operatorStatic member(UInt64 to Rational)
Converts the specified UInt64 to a Rational.
Public operatorStatic memberIncrement
Increments a Rational value.
Public operatorStatic memberInequality
Gets whether two Rational values are numerically not equivalent.
Public operatorStatic memberLessThan
Gets whether a Rational values is less than another.
Public operatorStatic memberLessThanOrEqual
Gets whether a Rational values is less than or equal to another.
Public operatorStatic memberModulus
Gets the remainder that results from dividing two Rational values.
Public operatorStatic memberMultiply
Multiplies two Rational values.
Public operatorStatic memberSubtraction
Subtracts two Rational values.
Public operatorStatic memberUnaryNegation
Gets the negated version of a Rational value.
Public operatorStatic memberUnaryPlus
Gets the Rational value.
Top
See Also