> x <- 1.00042589212565 > x [1] 1.000426
If I wanted to print the exact value of x, how would I do it?
x
Sorry if this
print(x, digits=15)
or
format(x, digits=15)
sprintf("%.14f", x)
Globally solution during all the session
options(digits=16) > x [1] 1.00042589212565
or locally just for x:
sprintf("%.16f", x) [1] "1.0004258921256499"