Single.ConvertToInteger<TInteger>(Single) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
利用溢位時的飽和將值轉換為指定的整數型別
public:
generic <typename TInteger>
where TInteger : System::Numerics::IBinaryInteger<TInteger> static TInteger ConvertToInteger(float value) = System::Numerics::IFloatingPoint<float>::ConvertToInteger;
public static TInteger ConvertToInteger<TInteger>(float value) where TInteger : System.Numerics.IBinaryInteger<TInteger>;
static member ConvertToInteger : single -> 'Integer (requires 'Integer :> System.Numerics.IBinaryInteger<'Integer>)
Public Shared Function ConvertToInteger(Of TInteger As IBinaryInteger(Of TInteger)) (value As Single) As TInteger
類型參數
- TInteger
將轉換為的整數類型 value 。
參數
- value
- Single
要轉換的值。
傳回
TInteger
由 TInteger創造的實例value。