Språk

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

Definition

Skapar en instans av den aktuella typen från ett värde och trunkerar alla värden som ligger utanför det representerarbara intervallet för den aktuella typen.

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

Typparametrar

TOther

Typen av value.

Parametrar

value
TOther

Värdet som används för att skapa instansen av TSelf.

Returer

TSelf

En instans av TSelf skapad från value, trunkering om value den ligger utanför det representerarbara intervallet TSelf.

Undantag

TOther stöds inte.

Gäller för