RawSRational

RawSRational class

Represents signed rational number.

public sealed class RawSRational : IEquatable<RawSRational>

Constructors

Name Description
RawSRational(int, int) Initializes a new instance of the RawSRational class.

Properties

Name Description
Denominator { get; } Gets denominator.
Numerator { get; } Gets numerator.
Value { get; } Gets actual value represented as double.

Methods

Name Description
override Equals(object) Indicates whether the current object is equal to another object of the same type.
Equals(RawSRational) 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(RawSRational, RawSRational) Compares pair of RawSRational.
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