Share via


Rational.IsNaN Property

Definition

Indicates whether this rational is a <em>Not-a-Number (NaN)</em> value.

public bool IsNaN { [Android.Runtime.Register("isNaN", "()Z", "")] get; }
[<get: Android.Runtime.Register("isNaN", "()Z", "")>]
member this.IsNaN : bool

Property Value

true if this rational is a <em>Not-a-Number (NaN)</em> value; false if this is a (potentially infinite) number value

Attributes

Remarks

Indicates whether this rational is a <em>Not-a-Number (NaN)</em> value.

A NaN value occurs when both the numerator and the denominator are 0.

Java documentation for android.util.Rational.isNaN().

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.

Applies to