stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: [STDCXX-708] LDBL_EPSILON in etc/config/src/FLOAT.cpp
Date Tue, 01 Apr 2008 00:37:08 GMT
Eric Lemings wrote:
>  
> file stdcxx/trunk/etc/config/src/FLOAT.cpp:
> 228 #ifndef _RWSTD_NO_LONG_DOUBLE
> 229 #  if defined (LDBL_EPSILON)
> 230     PRINTFLT (LDBL_EPSILON, LDBL_FMT, LDBL_DIG, "L");
> 231 #  endif   // LDBL_EPSILON
> 
> LDBL_DIG?  Cut'n'paste error?

I don't see anything wrong here. The third argument to the PRINTFLT()
macro is the precision:
http://fisheye6.cenqua.com/browse/stdcxx/trunk/etc/config/src/FLOAT.cpp?r=trunk#l144

    144  #define PRINTFLT(macro, fmt, prec, suffix) \
    145      print_float (macro, STRINGIZE (macro), #macro, "%.*" fmt 
"e" suffix, prec)

Martin

Mime
View raw message