This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: sparc, ia64: Compute cos(M_PI_2l) for your 128-bit long double please.


On Thu, Apr 11, 2013 at 03:06:47PM +0200, Andreas Schwab wrote:
> Rich Felker <dalias@aerifal.cx> writes:
> 
> > I would just use something like "%.100000g\n".
> 
> If you use %g you need at most DECIMAL_DIG digits.

No, that's wrong. DECIMAL_DIG is sufficient if you want to round-trip
the value back. But here we want to print the exact value in order to
use an external tool to apply cos() to that value.

Rich


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