Skip to content

Commit

Permalink
[wip] wkt: fix -0 to return 0
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti committed Sep 29, 2023
1 parent de07c1c commit 44066aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/detail/io/WktWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ namespace impl {
auto
writeFT(std::ostream &s, const CGAL::Gmpq &ft) -> std::ostream &
{
s << ft;
if (ft == -0.0)
s << 0;
else
s << ft;
return s;
}

Expand Down

0 comments on commit 44066aa

Please sign in to comment.