Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
Devuelve el valor normalizado mínimo de un tipo.
static Type min( ) throw( );
Valor devuelto
el valor normalizado mínimo para el tipo.
Comentarios
el valor normalizado mínimo es INT_MIN para int y FLT_MIN escritos para floatescrito.el valor devuelto es significativo si is_bounded es true o si is_signed es false.
Ejemplo
// 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;
}
Requisitos
encabezado: <límites>
espacio de nombres: std