IntPtr.IsEvenInteger(IntPtr) 메서드

정의

값이 짝수 정수인지 여부를 확인합니다.

public:
 static bool IsEvenInteger(IntPtr value) = System::Numerics::INumberBase<IntPtr>::IsEvenInteger;
public static bool IsEvenInteger (IntPtr value);
static member IsEvenInteger : nativeint -> bool
Public Shared Function IsEvenInteger (value As IntPtr) As Boolean

매개 변수

value
IntPtr

nativeint

반환

Boolean

true if value is an even integer; otherwise, false.

구현

설명

이 메서드는 부동 소수점 값을 올바르게 처리하므로 2.0 반환되는 동안 2.2 반환 true false됩니다.

반환 값이 false 반환true된다는 IsOddInteger(TSelf) 의미는 아닙니다. 예를 들어 3.3소수 부분이 있는 숫자는 짝수 또는 홀수가 아닙니다.

적용 대상