Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
printf %a mishandles exponent-crossing rounding with long double #15510
Created by email@example.com
On an x86 long-double build (63 fractional significand bits):
$ perl -lwe 'printf "%a\n", 1.9999999999999999999'
The latter output is wrong. It is numerically correct, but (per the C