Closed tkoenig1 closed 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.
FMPFR("1.23456",100,mpfr_rndz)
100
mpfr_rndz
Have to think a bit how Fortran generics rules allow for that...
To get around the generics rules of Fortran, I had to use int8 - integers for the rounding flags, it seems to work now.
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 the100
and thempfr_rndz
are optional.Have to think a bit how Fortran generics rules allow for that...