RawRational
RawRational class
Represents a rational number.
public sealed class RawRational : IEquatable<RawRational>
Constructors
Properties
Name |
Description |
Denominator { get; } |
Gets the denominator. |
Numerator { get; } |
Gets the numerator. |
Value { get; } |
Gets the rational value. |
Methods
Name |
Description |
override Equals(object) |
Indicates whether the current object is equal to another object of the same type. |
Equals(RawRational) |
Indicates whether the current object is equal to another object of the same type. |
override GetHashCode() |
Returns a hash code for this instance. |
override ToString() |
Returns a String that represents this instance. |
static Equals(RawRational, RawRational) |
Compares a pair of RawRational numbers. |
operator == |
Indicates whether two objects of the same type are equal. |
operator != |
Indicates whether two objects of the same type are not equal. |
See Also