• R
    fix the last known rounding bug in floating point printing · 8628eff9
    Rich Felker 提交于
    the observed symptom was that the code was incorrectly rounding up
    1.0625 to 1.063 despite the rounding mode being round-to-nearest with
    ties broken by rounding to even last place. however, the code was just
    not right in many respects, and i'm surprised it worked as well as it
    did. this time i tested the values that end up in the variables round,
    small, and the expression round+small, and all look good.
    8628eff9
vfprintf.c 14.9 KB