Partilhar via


Double.ConvertToInteger<TInteger>(Double) Método

Definição

Converte um valor em um tipo inteiro especificado usando saturação no estouro

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

Parâmetros de tipo

TInteger

O tipo inteiro no qual value é convertido.

Parâmetros

value
Double

O valor a ser convertido.

Retornos

TInteger

Uma instância de TInteger criada a partir de value.

Implementações

Aplica-se a