struct in UnityEditor.Media
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
CloseRational 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. |
Unknown operator | Returns the rational value expressed as a floating point value. |