語言

Single.CreateSaturating<TOther>(TOther) 方法

定義

從值建立目前型別的實例,使落在目前類型可表示範圍以外的任何值飽和。

public:
generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static float CreateSaturating(TOther value) = System::Numerics::INumberBase<float>::CreateSaturating;
public static float CreateSaturating<TOther>(TOther value) where TOther : System.Numerics.INumberBase<TOther>;
static member CreateSaturating : 'Other -> single (requires 'Other :> System.Numerics.INumberBase<'Other>)
Public Shared Function CreateSaturating(Of TOther As INumberBase(Of TOther)) (value As TOther) As Single

類型參數

TOther

value 的類型。

參數

value
TOther

用來建立 的 TSelf值。

傳回

由 TSelf創造的實例 value ,若 value 超出 的可表示範圍TSelf,則飽和 。

實作

適用於