英語で読む

次の方法で共有


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の作成に使用される値。

戻り値

からvalue作成された のTSelfインスタンスが、 の表現可能な範囲外TSelfにある場合valueは飽和状態になります。

実装

適用対象

製品 バージョン
net-9.0 net-9.0