Rational Members

The Rational type exposes the following members.

Constructors

Name Description
Public method Rational Overloaded.

Initializes a new instance of the Rational class.

Methods

Name Description
Public method Equals

Tests whether the specified object is a Rational instance and is equivalent to this Rational.

(Overrides Object.Equals(Object).)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode

Returns a hash code for this Rational.

(Overrides Object.GetHashCode()().)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString

Returns a string that represents the current object.

(Overrides Object.ToString()().)

Operators

Name Description
Public operator Static member Equality

Tests whether two specified Rational instances are equivalent.

Public operator Static member Inequality

Tests whether two specified Rational instances are different.

Properties

Name Description
Public property Dividend

Gets or sets a dividend of the rational number.

Public property Divider

Gets or sets a divider of the rational number.

See Also

Reference