Rational number useful for expressing fractions precisely.
Invalid | Invalid rational value. |
denominator | Fraction denominator. |
inverse | The inverse of the rational number. |
isNegative | Whether the rational number is negative. |
isValid | Whether the rational number is valid. |
isZero | Whether the rational number is zero. |
numerator | Fraction numerator. |
MediaRational | Constructs a rational number. The version that omits the denominator sets it to 1. |
Set | Sets the numerator and denominator, performing normalization. |
double | Returns the rational value expressed as a floating point value. |