I have a variable, which contains mpfr object.
> currentPrice <- mpfr(as.character(reduceData[1, 2]))
> currentPrice
1 'mpfr' number of precision 97 bits
[1] 14.22857142857142857142857143301
How can I write this value to text file without cutting it and tranforming to short version like this:
> as.numeric(currentPrice)
[1] 14.22857
Thank you for your attention.
Command dput outputs this:
> dput(currentPrice)
new("mpfr"
, .Data = list(<S4 object of class structure("mpfr1", package = "Rmpfr")>)
)