Double.INumberBase<Double>.TryConvertToTruncating<TOther> 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.
Tente de convertir un instance du type actuel en un autre type, tronqué toutes les valeurs qui se trouvent en dehors de la plage représentable du type actuel.
generic <typename TOther>
where TOther : System::Numerics::INumberBase<TOther> static bool System.Numerics.INumberBase<System.Double>.TryConvertToTruncating(double value, [Runtime::InteropServices::Out] TOther % result) = System::Numerics::INumberBase<double>::TryConvertToTruncating;
static bool INumberBase<double>.TryConvertToTruncating<TOther>(double value, out TOther result) where TOther : System.Numerics.INumberBase<TOther>;
static member System.Numerics.INumberBase<System.Double>.TryConvertToTruncating : double * 'Other -> bool (requires 'Other :> System.Numerics.INumberBase<'Other>)
Shared Function TryConvertToTruncating(Of TOther As INumberBase(Of TOther)) (value As Double, ByRef result As TOther) As Boolean Implements INumberBase(Of Double).TryConvertToTruncating
- TOther
Type vers lequel value
doit être converti.
- value
- Double
Valeur utilisée pour créer le instance de TOther
.
- result
- TOther
Lorsque cette méthode retourne, contient une instance de TOther
convertie à partir de value
.
false
si TOther
n’est pas pris en charge ; sinon, true
.
Produit | Versions |
---|---|
.NET | 7, 8, 9, 10 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :