r faq - Display exact value of a variable in R -


> x <- 1.00042589212565 > x [1] 1.000426 

if wanted print exact value of x, how it?

sorry if dumb question. tried googling "r" , "exact" or "round" articles how round.

thank in advance!

globally solution during session

options(digits=16) > x [1] 1.00042589212565 

or locally x:

sprintf("%.16f", x) [1] "1.0004258921256499" 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -