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

Definição

Converte um valor para um tipo inteiro especificado usando saturação no overflow

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

Parâmetros de Tipo Genérico

TInteger

O tipo inteiro para o qual value é convertido.

Parâmetros

value
Single

O valor a ser convertido.

Devoluções

TInteger

Uma instância de TInteger criada a partir valuede .

Implementações

Aplica-se a