MathF.Truncate(Single) Méthode
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.
Calcule la partie intégrale d’un nombre à virgule flottante simple précision spécifié.
public:
static float Truncate(float x);
public static float Truncate(float x);
static member Truncate : single -> single
Public Shared Function Truncate (x As Single) As Single
- x
- Single
Nombre à tronquer.
Représentation tronquée de x
Truncate arrondit x
à l’entier le plus proche vers zéro.
Produit | Versions |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Standard | 2.0 (package-provided), 2.1 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :