IFloatingPoint<TSelf>.ConvertToInteger<TInteger>(TSelf) 方法

定義

使用溢位上的飽和度,將值轉換為指定的整數類型

public:
generic <typename TInteger>
 where TInteger : System::Numerics::IBinaryInteger<TInteger> static override TInteger ConvertToInteger(TSelf value);
public static virtual TInteger ConvertToInteger<TInteger> (TSelf value) where TInteger : System.Numerics.IBinaryInteger<TInteger>;
static member ConvertToInteger : 'Self -> 'Integer (requires 'Integer :> System.Numerics.IBinaryInteger<'Integer>)
Public Shared Overrides Function ConvertToInteger(Of TInteger As IBinaryInteger(Of TInteger)) (value As TSelf) As TInteger

類型參數

TInteger

轉換 value 的整數類型。

參數

value
TSelf

要轉換的值。

傳回

TInteger

value建立之 TInteger 的實例。

適用於