Int32.IsOddInteger(Int32) Yöntem

Tanım

Bir değerin tek bir tamsayı sayısını temsil ediyor olup olmadığını belirler.

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

Parametreler

value
Int32

Denetlenecek değer.

Döndürülenler

true tek bir tamsayıysa value ; değilse, false.

Uygulamalar

Açıklamalar

Bu yöntem kayan nokta değerlerini doğru işler ve bu nedenle 3.0 döndürürken true3.3 döndürür false.

dönüş değeri false döndüreceği IsEvenInteger(TSelf)trueanlamına gelmez. Kesirli kısmı olan bir sayı, örneğin, 3.3çift veya tek değildir.

Şunlara uygulanır