INumberBase<TSelf>.CreateTruncating<TOther>(TOther) Metodo

Definizione

Crea un'istanza del tipo corrente da un valore, troncando tutti i valori che rientrano all'esterno dell'intervallo rappresentabile del tipo corrente.

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

Parametri di tipo

TOther

Tipo di value.

Parametri

value
TOther

Valore utilizzato per creare l'istanza di TSelf.

Restituisce

TSelf

Istanza di TSelf creata da value, troncamento se value rientra all'esterno dell'intervallo rappresentabile di TSelf.

Eccezioni

TOther non è supportato.

Si applica a