Single.ConvertToInteger<TInteger>(Single) Metodo

Definizione

Converte un valore in un tipo integer specificato utilizzando la saturazione in caso di 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

Parametri di tipo

TInteger

Tipo integer in cui value viene convertito.

Parametri

value
Single

Valore da convertire.

Valori restituiti

TInteger

Istanza di TInteger creata da value.

Implementazioni

Si applica a