Rational.LongValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the value of the specified number as a long
.
[Android.Runtime.Register("longValue", "()J", "")]
public override long LongValue ();
[<Android.Runtime.Register("longValue", "()J", "")>]
override this.LongValue : unit -> int64
Returns
the divided value of the numerator and denominator as a long
.
- Attributes
Remarks
Returns the value of the specified number as a long
.
#isInfinite Finite
rationals are converted to an long
value by dividing the numerator by the denominator; conversion for non-finite values happens identically to casting a floating point value to a long
, in particular:
<ul> <li>Positive infinity saturates to the largest maximum long Long#MAX_VALUE
</li> <li>Negative infinity saturates to the smallest maximum long Long#MIN_VALUE
</li> <li><em>Not-A-Number (NaN)</em> returns 0
.</li> </ul>
Java documentation for android.util.Rational.longValue()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.