Double.ConvertToInteger<TInteger>(Double) 方法

定义

使用溢出时饱和度将值转换为指定的整数类型

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

类型参数

TInteger

value 转换到的整数类型。

参数

value
Double

要转换的值。

返回

TInteger

value创建的 TInteger 实例。

实现

适用于