Provided by: libstdc++6-4.5-doc_4.5.3-12ubuntu2_all

**NAME**

std::numeric_limits< _Tp > -

**SYNOPSIS**

Inheritsstd::__numeric_limits_base. Inherited by std::numeric_limits< const _Tp >, std::numeric_limits< const volatile _Tp >, and std::numeric_limits< volatile _Tp >.StaticPublicMemberFunctionsstatic _Tpdenorm_min() throw () static _Tpepsilon() throw () static _Tpinfinity() throw () static _Tplowest() throw () static _Tpmax() throw () static _Tpmin() throw () static _Tpquiet_NaN() throw () static _Tpround_error() throw () static _Tpsignaling_NaN() throw ()StaticPublicAttributesstatic const intdigitsstatic const intdigits10static constfloat_denorm_stylehas_denormstatic const boolhas_denorm_lossstatic const boolhas_infinitystatic const boolhas_quiet_NaNstatic const boolhas_signaling_NaNstatic const boolis_boundedstatic const boolis_exactstatic const boolis_iec559static const boolis_integerstatic const boolis_modulostatic const boolis_signedstatic const boolis_specializedstatic const intmax_digits10static const intmax_exponentstatic const intmax_exponent10static const intmin_exponentstatic const intmin_exponent10static const intradixstatic constfloat_round_styleround_stylestatic const booltinyness_beforestatic const booltraps

**Detailed** **Description**

template<typename_Tp>structstd::numeric_limits<_Tp>Properties of fundamental types. This class allows a program to obtain information about the representation of a fundamental type on a given platform. For non-fundamental types, the functions will return 0 and the data members will all be false. _GLIBCXX_RESOLVE_LIB_DEFECTS: DRs 201 and 184 (hi Gaby!) are noted, but not incorporated in this documented (yet). Definition at line 284 of file limits.

**Member** **Function** **Documentation**

template<typename_Tp>static_Tpstd::numeric_limits<_Tp>::denorm_min()throw()[inline,static]Theminimumpositivedenormalizedvalue.Fortypeswherehas_denormisfalse,thisistheminimumpositivenormalizedvalue.Definition at line 313 of file limits.template<typename_Tp>static_Tpstd::numeric_limits<_Tp>::epsilon()throw()[inline,static]Themachineepsilon:thedifferencebetween1andtheleastvaluegreaterthan1thatisrepresentable.Definition at line 298 of file limits.template<typename_Tp>static_Tpstd::numeric_limits<_Tp>::infinity()throw()[inline,static]Therepresentationofpositiveinfinity,ifhas_infinity.Definition at line 302 of file limits.template<typename_Tp>static_Tpstd::numeric_limits<_Tp>::lowest()throw()[inline,static]Afinitevaluexsuchthatthereisnootherfinitevalueywherey<x.Definition at line 294 of file limits.template<typename_Tp>static_Tpstd::numeric_limits<_Tp>::max()throw()[inline,static]Themaximumfinitevalue.Definition at line 290 of file limits.template<typename_Tp>static_Tpstd::numeric_limits<_Tp>::min()throw()[inline,static]Theminimumfinitevalue,orforfloatingtypeswithdenormalization,theminimumpositivenormalizedvalue.Definition at line 288 of file limits.template<typename_Tp>static_Tpstd::numeric_limits<_Tp>::quiet_NaN()throw()[inline,static]TherepresentationofaquietNotaNumber,ifhas_quiet_NaN.Definition at line 306 of file limits.template<typename_Tp>static_Tpstd::numeric_limits<_Tp>::round_error()throw()[inline,static]Themaximumroundingerrormeasurement(seeLIA-1).Definition at line 300 of file limits.template<typename_Tp>static_Tpstd::numeric_limits<_Tp>::signaling_NaN()throw()[inline,static]TherepresentationofasignalingNotaNumber,ifhas_signaling_NaN.Definition at line 309 of file limits.

**Member** **Data** **Documentation**

constintstd::__numeric_limits_base::digits[static,inherited]Thenumberofradixdigitsthatberepresentedwithoutchange:forintegertypes,thenumberofnon-signbitsinthemantissa;forfloatingtypes,thenumberofradixdigitsinthemantissa.Definition at line 199 of file limits.constintstd::__numeric_limits_base::digits10[static,inherited]Thenumberofbase10digitsthatcanberepresentedwithoutchange.Definition at line 201 of file limits.constfloat_denorm_stylestd::__numeric_limits_base::has_denorm[static,inherited]Seestd::float_denorm_styleformoreinformation.Definition at line 244 of file limits.constboolstd::__numeric_limits_base::has_denorm_loss[static,inherited]Trueiflossofaccuracyisdetectedasadenormalizationloss,ratherthanasaninexactresult.[18.2.1.2]/42Definition at line 247 of file limits.constboolstd::__numeric_limits_base::has_infinity[static,inherited]Trueifthetypehasarepresentationforpositiveinfinity.Definition at line 236 of file limits.constboolstd::__numeric_limits_base::has_quiet_NaN[static,inherited]Trueifthetypehasarepresentationforaquiet(non-signaling)NotaNumber.Definition at line 239 of file limits.constboolstd::__numeric_limits_base::has_signaling_NaN[static,inherited]TrueifthetypehasarepresentationforasignalingNotaNumber.Definition at line 242 of file limits.constboolstd::__numeric_limits_base::is_bounded[static,inherited]Trueifthesetofvaluesrepresentablebythetypeisfinite.Allbuilt-intypesarebounded,thismemberwouldbefalseforarbitraryprecisiontypes.[18.2.1.2]/54Definition at line 255 of file limits.constboolstd::__numeric_limits_base::is_exact[static,inherited]Trueifthetypeusesanexactrepresentation.Allintegertypesareexact,butnotallexacttypesareinteger.Forexample,rationalandfixed-exponentrepresentationsareexactbutnotinteger.[18.2.1.2]/15Definition at line 216 of file limits.constboolstd::__numeric_limits_base::is_iec559[static,inherited]Trueif-and-only-ifthetypeadherestotheIEC559standard,alsoknownasIEEE754.(Onlymakessenseforfloatingpointtypes.)Definition at line 251 of file limits.constboolstd::__numeric_limits_base::is_integer[static,inherited]Trueifthetypeisinteger.Isthissupposedtobeifthetypeisintegral?Definition at line 211 of file limits.constboolstd::__numeric_limits_base::is_modulo[static,inherited]Trueifthetypeismodulo,thatis,ifitispossibletoaddtwopositivenumbersandhavearesultthatwrapsaroundtoathirdnumberthatisless.Typicallyfalseforfloatingtypes,trueforunsignedintegers,andtrueforsignedintegers.Definition at line 260 of file limits.constboolstd::__numeric_limits_base::is_signed[static,inherited]Trueifthetypeissigned.Definition at line 208 of file limits.constboolstd::__numeric_limits_base::is_specialized[static,inherited]Thiswillbetrueforallfundamentaltypes(whichhavespecializations),andfalseforeverythingelse.Definition at line 194 of file limits.constintstd::__numeric_limits_base::max_digits10[static,inherited]Thenumberofbase10digitsrequiredtoensurethatvalueswhichdifferarealwaysdifferentiated.Definition at line 205 of file limits.constintstd::__numeric_limits_base::max_exponent[static,inherited]Themaximumpositiveintegersuchthatradixraisedtothepowerof(onelessthanthatinteger)isarepresentablefinitefloatingpointnumber.Definition at line 230 of file limits.constintstd::__numeric_limits_base::max_exponent10[static,inherited]Themaximumpositiveintegersuchthat10raisedtothatpowerisintherangeofrepresentablefinitefloatingpointnumbers.Definition at line 233 of file limits.constintstd::__numeric_limits_base::min_exponent[static,inherited]Theminimumnegativeintegersuchthatradixraisedtothepowerof(onelessthanthatinteger)isanormalizedfloatingpointnumber.Definition at line 223 of file limits.constintstd::__numeric_limits_base::min_exponent10[static,inherited]Theminimumnegativeintegersuchthat10raisedtothatpowerisintherangeofnormalizedfloatingpointnumbers.Definition at line 226 of file limits.constintstd::__numeric_limits_base::radix[static,inherited]Forintegertypes,specifiesthebaseoftherepresentation.Forfloatingtypes,specifiesthebaseoftheexponentrepresentation.Definition at line 219 of file limits.constfloat_round_stylestd::__numeric_limits_base::round_style[static,inherited]Seestd::float_round_styleformoreinformation.Thisisonlymeaningfulforfloatingtypes;integertypeswillallberound_toward_zero.Definition at line 269 of file limits.constboolstd::__numeric_limits_base::tinyness_before[static,inherited]Trueiftininessisdetectedbeforerounding.(seeIEC559)Definition at line 265 of file limits.constboolstd::__numeric_limits_base::traps[static,inherited]Trueiftrappingisimplementedforthistype.Definition at line 263 of file limits.

**Author**

Generated automatically by Doxygen for libstdc++ from the source code.