Int32.IsOddInteger(Int32) 메서드

정의

값이 홀수 정수인지 여부를 결정합니다.

public:
 static bool IsOddInteger(int value) = System::Numerics::INumberBase<int>::IsOddInteger;
public static bool IsOddInteger (int value);
static member IsOddInteger : int -> bool
Public Shared Function IsOddInteger (value As Integer) As Boolean

매개 변수

value
Int32

반환

Boolean

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

구현

설명

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

반환 값이 false 반환된다는 IsEvenInteger(TSelf) 의미는 true아닙니다. 소수 부분이 있는 숫자(예: 3.3짝수 또는 홀수)입니다.

적용 대상