Compartilhar via


Decimal.ConvertToInteger<TInteger>(Decimal) 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(System::Decimal value) = System::Numerics::IFloatingPoint<System::Decimal>::ConvertToInteger;
public static TInteger ConvertToInteger<TInteger> (decimal value) where TInteger : System.Numerics.IBinaryInteger<TInteger>;
static member ConvertToInteger : decimal -> 'Integer (requires 'Integer :> System.Numerics.IBinaryInteger<'Integer>)
Public Shared Function ConvertToInteger(Of TInteger As IBinaryInteger(Of TInteger)) (value As Decimal) As TInteger

Parâmetros de tipo

TInteger

O tipo inteiro no qual value é convertido.

Parâmetros

value
Decimal

O valor a ser convertido.

Retornos

TInteger

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

Implementações

Aplica-se a