Re: [R] How to improve accuracy of output?

2022-05-24 Thread Rui Barradas
Hello, I cannot reproduce this print behavior, with digits=14, there are 14 digits printed. x <- c(98.718527356108, 103.10265923704) x #> [1] 98.71853 103.10266 old_dig <- options(digits = 14) x #> [1] 98.718527356108 103.102659237040 options(old_dig) Maybe there's something else going

Re: [R] How to improve accuracy of output?

2022-05-24 Thread Andrew Simmons
I think you have to use print(df$price, digits = 14) On Tue, May 24, 2022, 10:01 maithili_shiva--- via R-help < r-help@r-project.org> wrote: > Dear Forum > In my code, I am trying to compute Value at risk. > I have an issue as mentioned below: > I have defined > > > options(digits = 14) > But my

[R] How to improve accuracy of output?

2022-05-24 Thread maithili_shiva--- via R-help
Dear Forum In my code, I am trying to compute Value at risk. I have an issue as mentioned below: I have defined  options(digits = 14) But my output is something like >  df$price [1] 98.7185273         103.10265923  However, if use Excel, I get values as 98.718527356108