Re: [R-pkg-devel] How to get arbitrary precise inputs from R for an Rcpp package?

2024-07-21 Thread Khue Tran
Thank you Duncan for providing detailed information on parsing in R. I will check it out and utilize the string inputs for my functions. Best regards, Khue Tran On Sat, Jul 20, 2024 at 4:40 AM Duncan Murdoch wrote: > Just for your info: > > > exp(mpfr("0.1", 152)) > 1 'mpfr' number of precisio

Re: [R-pkg-devel] How to get arbitrary precise inputs from R for an Rcpp package?

2024-07-21 Thread Khue Tran
Thank you Prof. Maechler! Indeed 0.1 is not the same as 1/10 and there are many ways to get more precise versions of it. I will look into how to take inputs as strings. Thank you! Best, Khue Tran On Sat, Jul 20, 2024 at 4:40 AM Duncan Murdoch wrote: > Just for your info: > > > exp(mpfr("0.1",

Re: [R-pkg-devel] How to get arbitrary precise inputs from R for an Rcpp package?

2024-07-21 Thread Khue Tran
Dear Leonard, Thank you so much for the detailed response! Indeed, it would be nice to have it included in the BH header. Thank you for sharing your codes with me, I will definitely take a look at them to see if I can apply them to my case. I was steering away from mpfr type for a while since they