mpaland/printf

bug in printf("%.1f", -.95);

ledvinap opened this issue · 1 comments

Interesting edge case:

printf("%.1f", -.95); ->  "00000000000000000000000000000010"

Fix is trivial, frac is not checked for overflow if diff==0.5