INumberBase<TSelf>.CreateTruncating<TOther>(TOther) Méthode

Définition

Crée une instance du type actuel à partir d’une valeur, tronqué toutes les valeurs qui se trouvent en dehors de la plage représentable du type actuel.

public:
generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static override TSelf CreateTruncating(TOther value);
public static virtual TSelf CreateTruncating<TOther> (TOther value) where TOther : System.Numerics.INumberBase<TOther>;
static member CreateTruncating : 'Other -> 'Self (requires 'Other :> System.Numerics.INumberBase<'Other>)
Public Shared Overrides Function CreateTruncating(Of TOther As INumberBase(Of TOther)) (value As TOther) As TSelf

Paramètres de type

TOther

Type d'élément value.

Paramètres

value
TOther

Valeur utilisée pour créer le instance de TSelf.

Retours

TSelf

Une instance de TSelf créée à partir de value, tronquée si value se situe en dehors de la plage représentable de TSelf.

Exceptions

TOther n’est pas pris en charge.

S’applique à