UInt128.IsOddInteger(UInt128) Yöntem

Tanım

Bir değerin tek integralli bir sayıyı temsil eder olup olmadığını belirler.

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

Parametreler

value
UInt128

Döndürülenler

Boolean

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 true 3.3 döndürür false.

değerinin false dönüş değeri 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