This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA:] fix 27_io/basic_ostream/inserters_arithmetic/char/4402.cc


Paolo Carlini wrote:

   int exp = std::numeric_limits<long double>::max_exponent10 - 2;
   long double val = std::pow(1.2345678901234567890123456789L, exp);

or just:


long double val = std::numeric_limits<long double>::max();

and be done with it?

Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]