Rediger

Del via


NFloat.IsInteger(NFloat) Method

Definition

Determines if a value represents an integral number.

public:
 static bool IsInteger(System::Runtime::InteropServices::NFloat value) = System::Numerics::INumberBase<System::Runtime::InteropServices::NFloat>::IsInteger;
public static bool IsInteger (System.Runtime.InteropServices.NFloat value);
static member IsInteger : System.Runtime.InteropServices.NFloat -> bool
Public Shared Function IsInteger (value As NFloat) As Boolean

Parameters

value
NFloat

The value to be checked.

Returns

true if value is an integer; otherwise, false.

Implements

Remarks

This method correctly handles floating-point values and so 2.0 and 3.0 will return true while 2.2 and 3.3 will return false.

Applies to