語言

NFloat.ConvertToInteger<TInteger>(NFloat) 方法

定義

利用溢位時的飽和將值轉換為指定的整數型別

public:
generic <typename TInteger>
 where TInteger : System::Numerics::IBinaryInteger<TInteger> static TInteger ConvertToInteger(System::Runtime::InteropServices::NFloat value) = System::Numerics::IFloatingPoint<System::Runtime::InteropServices::NFloat>::ConvertToInteger;
public static TInteger ConvertToInteger<TInteger>(System.Runtime.InteropServices.NFloat value) where TInteger : System.Numerics.IBinaryInteger<TInteger>;
static member ConvertToInteger : System.Runtime.InteropServices.NFloat -> 'Integer (requires 'Integer :> System.Numerics.IBinaryInteger<'Integer>)
Public Shared Function ConvertToInteger(Of TInteger As IBinaryInteger(Of TInteger)) (value As NFloat) As TInteger

類型參數

TInteger

將轉換為的整數類型 value 。

參數

value
NFloat

要轉換的值。

傳回

TInteger

由 TInteger創造的實例value。

實作

適用於