Skip to content

Commit

Permalink
floating precision down to 6 digits
Browse files Browse the repository at this point in the history
  • Loading branch information
trikko committed May 12, 2024
1 parent 641e850 commit 368cb7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/picture.d
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ struct Picture
auto w = r.p2.x - r.p1.x;
auto h = r.p2.y - r.p1.y;

auto line = format("%d %.20f %.20f %.20f %.20f", r.label, cx, cy, w, h);
auto line = format("%d %.6f %.6 %.6f %.6f", r.label, cx, cy, w, h);
f.writeln(line);
}

Expand Down

0 comments on commit 368cb7d

Please sign in to comment.