NFloat.INumberBase<NFloat>.TryConvertToTruncating<TOther> Metod

Definition

Försöker konvertera en instans av den aktuella typen till en annan typ och trunkerar alla värden som ligger utanför det representerarbara intervallet för den aktuella typen.

generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static bool System.Numerics.INumberBase<System.Runtime.InteropServices.NFloat>.TryConvertToTruncating(System::Runtime::InteropServices::NFloat value, [Runtime::InteropServices::Out] TOther % result) = System::Numerics::INumberBase<System::Runtime::InteropServices::NFloat>::TryConvertToTruncating;
static bool INumberBase<NFloat>.TryConvertToTruncating<TOther>(System.Runtime.InteropServices.NFloat value, out TOther result) where TOther : System.Numerics.INumberBase<TOther>;
static member System.Numerics.INumberBase<System.Runtime.InteropServices.NFloat>.TryConvertToTruncating : System.Runtime.InteropServices.NFloat * 'Other -> bool (requires 'Other :> System.Numerics.INumberBase<'Other>)
 Shared Function TryConvertToTruncating(Of TOther As INumberBase(Of TOther)) (value As NFloat, ByRef result As TOther) As Boolean Implements INumberBase(Of NFloat).TryConvertToTruncating

Typparametrar

TOther

Den typ som value ska konverteras.

Parametrar

value
NFloat

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

result
TOther

När den här metoden returnerar innehåller en instans av TOther konverterad från value.

Returer

false om TOther inte stöds, annars true.

Implementeringar

Gäller för