On Tue, Oct 3, 2023, 12:25 PM Saki Takamachi <s...@sakiot.com> wrote:
> > I thought GMP was a function for integers, so I wasn't expecting that tbh. > > However, even if GMP supported floating point numbers, wouldn't it end up > having the inherent error problem of floating point numbers? > yes, they do, as do almost all floating points implementation. Memory limited float values and their respective operations are still useful in many areas, but financial values and the likes. Scaled integers are the way for accuracy. Also, side note, gmp recommends to rely on https://www.mpfr.org/ for accurate FP operations best, >