I need to convert character class to numeric class in R. My character data shows a very accurate reading and essential for my project. One of the viable solution is using as.numeric to convert it. However, it seems that the coercion stop after several significant figures. Here is an example of the data:
> as.numeric("103.88974726496834")
[1] 103.8897
I thought that this might be printing rounding so I did the double checking:
as.character(as.numeric("103.88974726496834"))=="103.88974726496834" [1] FALSE
So, why did this happen? How to completely coerce the character to numeric?