Skip to content

Commit

Permalink
Precision of 0 in float format should hide dot
Browse files Browse the repository at this point in the history
  • Loading branch information
klange committed Oct 2, 2024
1 parent c9d1023 commit 5d8c4ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/obj_numeric.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ KRK_Method(float,__format__) {
case 'E':
digits = 6;
formatter = *spec;
forcedigits = 1;
forcedigits = (opts.hasPrecision && opts.prec == 0) ? 0 : 1;
break;

default:
Expand Down

0 comments on commit 5d8c4ca

Please sign in to comment.