Method IsInteger
IsInteger(double)
Determines whether the specified double-precision floating-point number represents an integer value.
public static bool IsInteger(double value)
Parameters
valuedoubleThe double-precision floating-point number to evaluate.
Returns
IsInteger(float)
Determines whether the specified floating-point value represents an integer.
public static bool IsInteger(float value)
Parameters
valuefloatThe floating-point value to evaluate.
Returns
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.