[R] Wired result when I convert from Character to Numeric

Christofer Bogaso bog@@o@chri@tofer @ending from gm@il@com
Wed May 23 12:42:04 CEST 2018


Hi,

Below is my simple result in R

> x = "1282553.8210000000"
> as.numeric(x)
[1] 1282554

Any idea where all numbers in the decimal places (ie 8, 2, 1) are gone?

Thanks,



More information about the R-help mailing list