Class Result.RationalResult
Represents the rational result.
public sealed class Result.RationalResult : Result
- Inheritance
-
Result.RationalResult
- Inherited Members
Constructors
RationalResult(RationalValue)
Initializes a new instance of the Result.RationalResult class.
public RationalResult(RationalValue rational)
Parameters
rational
RationalValueThe rational value.
Properties
Rational
Gets the rational value.
public override RationalValue Rational { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Operators
implicit operator RationalValue(RationalResult)
Converts Result.RationalResult to RationalValue.
public static implicit operator RationalValue(Result.RationalResult rationalResult)
Parameters
rationalResult
Result.RationalResultThe rational result.
Returns
- RationalValue
The rational value.