Subject: CGAL users discussion list
List archive
- From: Ben Supnik <>
- To:
- Subject: Re: [cgal-discuss] persisting GMPQ and MP_float
- Date: Sun, 30 Aug 2009 13:33:05 -0400
Hi Sylvain,
Sylvain Pion wrote:
MP_Float -> Gmpq can be done with m.to_rational<Gmpq>()
(beware, it's undocumented, and maybe not 100% overflow-proof yet,
but it might do it for you)
:-)
Gmpq -> MP_Float cannot be done in general, since MP_Float does not
represent rational numbers. Gmpq -> Quotient<MP_Float> might be
possible, but I don't think there is anything ready to use for that.
Do you really need MP_FLoat?
Poorly written email request -- I really need Quotient<MP_Float>.
(Well, what I really need is an exact file format read by two bits of code, one that uses GMP and one that does not. The file format could be a persisted version of GMP, quotient<MP_float> or a third alternative.)
cheers
Ben
--
Scenery Home Page: http://scenery.x-plane.com/
Scenery blog: http://xplanescenery.blogspot.com/
Plugin SDK: http://www.xsquawkbox.net/xpsdk/
X-Plane Wiki: http://wiki.x-plane.com/
Scenery mailing list:
Developer mailing list:
- [cgal-discuss] persisting GMPQ and MP_float, Ben Supnik, 08/30/2009
- Re: [cgal-discuss] persisting GMPQ and MP_float, Sylvain Pion, 08/30/2009
- Re: [cgal-discuss] persisting GMPQ and MP_float, Ben Supnik, 08/30/2009
- Re: [cgal-discuss] persisting GMPQ and MP_float, Sylvain Pion, 08/30/2009
Archive powered by MHonArc 2.6.16.