Double.ConvertToInteger<TInteger>(Double) Método
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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
- TInteger
O tipo inteiro no qual value
é convertido.
- value
- Double
O valor a ser convertido.
Uma instância de TInteger
criada a partir de value
.
Produto | Versões |
---|---|
.NET | 9, 10 |
Comentários do .NET
O .NET é um projeto código aberto. Selecione um link para fornecer comentários: