BigInteger.IsOddInteger(BigInteger) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Détermine si une valeur représente un nombre entier impair.
public:
static bool IsOddInteger(System::Numerics::BigInteger value) = System::Numerics::INumberBase<System::Numerics::BigInteger>::IsOddInteger;
public static bool IsOddInteger (System.Numerics.BigInteger value);
static member IsOddInteger : System.Numerics.BigInteger -> bool
Public Shared Function IsOddInteger (value As BigInteger) As Boolean
Paramètres
- value
- BigInteger
Valeur à vérifier.
Retours
true
si value
est un entier impair ; sinon, false
.
Implémente
Remarques
Cette méthode gère correctement les valeurs à virgule flottante et retourne true
alors 3.0
retourne 3.3
false
.
Une valeur de retour de false
n’implique pas que IsEvenInteger(TSelf) retourne true
. Un nombre avec une partie fractionnaire, par exemple, 3.3
n’est pas pair ou impair.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour