Thanks for the helpful response.
I've downloaded mpfr and mpfrcpp, but I'm not sure what to do exactly
to include them (while I'm compiling?). Also, would it be alright if I
sent you all of my code together? To be honest, I have very little
idea of what I'm doing in general; it took me quite a few hours to
understand just how to use custom libraries, and I'm still not sure if
I've used them correctly.
Thanks,
Ailec
On Feb 23, 1:25 am, Cactus <
rieman...@gmail.com> wrote:
> Hello,
>
> Welcome to mpir-devel! The first thing that I can say is that MPIR on its
> own is not the best application to use for multiple precision floating
> point applications. The mpf functions work but they have now been
> superseded by another package called MPFR (
seewww.mpfr.org) that provides
> significant improvements for high precision floating point algorithms.
>
> Although this requires yet another package to install, I think you will
> find that the extra effort will be worthwhile. In particular this will
> give you better control over precision and also allow long double
> conversions provided that your build environment supports this type
> (Microsoft build tools on Windows don't support long double).
>
> The second point I would make is that there are also C++ packages that
> allow high precision floating point types in a way that is essentially
> identical to ordinary double types - see, for example, the MPFRC++ (
http://www.holoborodko.com/pavel/mpfr/). These packages allows you to
> develop your code using ordinary doubles and, once it is working, you can
> then do a simple search and replace operation to convert 'double' into
> 'mpreal' and it will then work with high precision floating point types (a
> few other changes might be needed). Pavel's web page gives examples and
> you might also be interested in Rick Regan's 'Exploring Binary' where he
> explains how he went through the issue you are looking at here:
http://www.exploringbinary.com/how-to-install-and-run-gmp-on-windows-...