On Sun, 21 Sep 2025 14:22:03 -0600 Stan Marsh wrote: > >Could fltexpr maybe link to some other libm that is correctly rounded, > >like GNU MPFR, or LLVM's libm, to mention just a few? > > I doubt they'd want to make bash dependent on any external library > like that (that may or may not be installed on a given system).
Bash is already carrying 3 such "external" libraries in its tarball. > But you are certainly welcome to take a look at the source (fltexpr.c) > and monkey around with it. At this point I wouldn't dare monkeying with it, because I beleive that this one is Chet's child, and it it still a work-in-progress for him. > Interestingly, I tried messing around a bit with MPFR using GAWK, but > found it did pretty much the same thing as fltexpr does - which is not > what you want. Now this is surprising to me. I'll have to look into that. > The other thing I wanted to suggest - since you've opened the door to > suggesting alternatives - is to run "bc" as a coproc. Not that I have any urgent need for floating-point math. I was just playing with the new loadable. But this is an interesting suggestion. Thank you.
