Condividi tramite


Float.IsFinite(Single) Method

Definition

Returns true if the argument is a finite floating-point value; returns false otherwise (for NaN and infinity arguments).

[Android.Runtime.Register("isFinite", "(F)Z", "", ApiSince=24)]
public static bool IsFinite (float f);
[<Android.Runtime.Register("isFinite", "(F)Z", "", ApiSince=24)>]
static member IsFinite : single -> bool

Parameters

f
Single

the float value to be tested

Returns

true if the argument is a finite floating-point value, false otherwise.

Attributes

Remarks

Returns true if the argument is a finite floating-point value; returns false otherwise (for NaN and infinity arguments).

Added in 1.8.

Java documentation for java.lang.Float.isFinite(float).

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