tkoenig1 / FMPFR

A Fortran binding for the GNU MPFR library.
Other
9 stars 1 forks source link

Improve handling of precision and rounding #3

Closed tkoenig1 closed 2 years ago

tkoenig1 commented 2 years ago

It would be nice to be able to specify precision and rounding, both optional, to allow something like FMPFR("1.23456",100,mpfr_rndz) where both the 100 and the mpfr_rndz are optional.

Have to think a bit how Fortran generics rules allow for that...

tkoenig1 commented 2 years ago

To get around the generics rules of Fortran, I had to use int8 - integers for the rounding flags, it seems to work now.