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

value建立之 TInteger 的實例。

實作

適用於