Condividi tramite


numeric_limits::min

Restituisce il valore minimo di normalizzato per un tipo.

static Type min( ) throw( );

Valore restituito

Il valore minimo di normalizzato per il tipo.

Note

Il minimo di valore è normalizzato INT_MIN per tipo int e FLT_MIN per tipo float. Il valore restituito è significativo in is_bounded è true o se is_signed è false.

Esempio

// numeric_limits_min.cpp
// compile with: /EHsc
#include <iostream>
#include <limits>

using namespace std;

int main( )
{
   cout << "The minimum value for type float is:  "
        << numeric_limits<float>::min( )
        << endl;
   cout << "The minimum value for type double is:  "
        << numeric_limits<double>::min( )
        << endl;
   cout << "The minimum value for type int is:  "
        << numeric_limits<int>::min( )
        << endl;
   cout << "The minimum value for type short int is:  "
        << numeric_limits<short int>::min( )
        << endl;
}
  

Requisiti

limiti <diIntestazione: >

Spazio dei nomi: std

Vedere anche

Riferimenti

Classe strstreambuf