Subject: CGAL users discussion list
List archive
- From: "Laurent Rineau (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Re: Can CGAL cope with very long numbers?
- Date: Mon, 28 Feb 2011 19:02:11 +0100
- Organization: GeometryFactory
Le lundi 28 février 2011 18:14:28, annie a écrit :
> One more thing - I see that Point is working with double. The following
> sample is working:
>
> va=cdt.insert(Point(2.11, 3.22));
> f<<"My double point: "<<va->point();
>
> It makes me confused. I have no more ideas of how I can pass double
> variable as parameter to Point()?
> ...Point(x,y) where x,y are already double.
> Or maybe it's already working, but just doesn't go to file in this format
> by f<<?
> Please help me, it's important for me...
Your issue is not specific to CGAL code. If you want to print double
precision
floating point numbers with a good precision to a stream 'f', you need to
call:
f.precision(17);
before using the stream.
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
- [cgal-discuss] Can CGAL cope with very long numbers?, annie, 02/27/2011
- Re: [cgal-discuss] Can CGAL cope with very long numbers?, Sebastien Loriot (GeometryFactory), 02/28/2011
- Re: [cgal-discuss] Can CGAL cope with very long numbers?, aneta, 02/28/2011
- Re: [cgal-discuss] Can CGAL cope with very long numbers?, aneta, 02/28/2011
- [cgal-discuss] Re: Can CGAL cope with very long numbers?, annie, 02/28/2011
- Re: [cgal-discuss] Re: Can CGAL cope with very long numbers?, Laurent Rineau (GeometryFactory), 02/28/2011
- [cgal-discuss] Re: Can CGAL cope with very long numbers?, annie, 02/28/2011
- Re: [cgal-discuss] Can CGAL cope with very long numbers?, aneta, 02/28/2011
- Re: [cgal-discuss] Can CGAL cope with very long numbers?, aneta, 02/28/2011
- Re: [cgal-discuss] Can CGAL cope with very long numbers?, Sebastien Loriot (GeometryFactory), 02/28/2011
Archive powered by MHonArc 2.6.16.