diff --git a/CGAL_Core/include/CGAL/CORE/Expr.h b/CGAL_Core/include/CGAL/CORE/Expr.h index e6efa1feb7c..a1d4a042808 100644 --- a/CGAL_Core/include/CGAL/CORE/Expr.h +++ b/CGAL_Core/include/CGAL/CORE/Expr.h @@ -346,7 +346,11 @@ public: /// I/O Stream operator<< inline std::ostream& operator<<(std::ostream& o, const Expr& e) { - o << *(const_cast(&e.getRep())); + if (o.precision() > 17) { + o << *(const_cast(&e.getRep())); + } else { + o << e.doubleValue(); + } return o; } /// I/O Stream operator>>