Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #25 from niclas/master
Fixing dot formatting bug Issue #24
  • Loading branch information
wwwutz committed Mar 29, 2019
2 parents c9b7779 + deada0d commit 46559b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xwin.c
Expand Up @@ -502,7 +502,7 @@ void readable_float(float number, char* number_label)
char number_string[1024];
int i, j, length;
sprintf(number_string, "%.2f", number);
length = (strlen(number_string) - 3) / 4 + strlen(number_string);
length = (strlen(number_string) - 4) / 3 + strlen(number_string);

for (i = 0, j = 0; i < length; ++i) {
if ((length - 3 - i) % 4 == 0 && i < length - 3) {
Expand Down

0 comments on commit 46559b8

Please sign in to comment.