Table of Contents

Method IsInteger

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

IsInteger(double)

Determines whether the specified double-precision floating-point number represents an integer value.

public static bool IsInteger(double value)

Parameters

value double

The double-precision floating-point number to evaluate.

Returns

bool

true if the specified value represents an integer; otherwise, false.

IsInteger(float)

Determines whether the specified floating-point value represents an integer.

public static bool IsInteger(float value)

Parameters

value float

The floating-point value to evaluate.

Returns

bool

true if the specified value is an integer; otherwise, false.

Remarks

A value is considered an integer if it has no fractional component. For example, 5.0 and -3.0 are integers, but 5.5 and -3.1 are not.