sparc, ia64: Compute cos(M_PI_2l) for your 128-bit long double please.

Rich Felker dalias@aerifal.cx
Thu Apr 11 20:36:00 GMT 2013


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



More information about the Libc-alpha mailing list