SByte.CreateTruncating<TOther>(TOther) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從值建立目前型別的實例,截斷落在目前類型可表示範圍以外的任何值。
public:
generic <typename TOther>
where TOther : System::Numerics::INumberBase<TOther> static System::SByte CreateTruncating(TOther value) = System::Numerics::INumberBase<System::SByte>::CreateTruncating;
public static sbyte CreateTruncating<TOther>(TOther value) where TOther : System.Numerics.INumberBase<TOther>;
static member CreateTruncating : 'Other -> sbyte (requires 'Other :> System.Numerics.INumberBase<'Other>)
Public Shared Function CreateTruncating(Of TOther As INumberBase(Of TOther)) (value As TOther) As SByte
類型參數
- TOther
value 的類型。
參數
- value
- TOther
用來建立 實例的值 TSelf 。
傳回
從 value 建立的 TSelf 實例,如果 value 落在 可表示的範圍 TSelf 之外,則會截斷 。