SByte.IsOddInteger(SByte) Méthode

Définition

Détermine si une valeur représente un nombre intégral impair.

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

Paramètres

value
SByte

Valeur à vérifier.

Retours

true s’il value s’agit d’un entier impair ; sinon, false.

Implémente

Remarques

Cette méthode gère correctement les valeurs à virgule flottante, et 3.0 retourne alors true le 3.3 retour false.

Une valeur de retour n’implique false pas qu’elle IsEvenInteger(TSelf) retourne true. Un nombre avec une partie fractionnaire, par exemple, 3.3n’est pas pair ou impair.

S’applique à