title: why as.numeric function in R doesn't work properly?
body: <p>I have these two characters and the &quot;as.numeric&quot; function doesn't work same for them. Can anyone help me why this is happening?</p>
  <blockquote>
  <p>options(digits=22)</p>
  <p>a=&quot;27&quot;</p>
  <p>as.numeric(a)</p>
  </blockquote>
  <p>[1] 27.00000000000000000000</p>
  <blockquote>
  <p>a=&quot;193381411288395777&quot;</p>
  <p>as.numeric(a)</p>
  </blockquote>
  <p>[1] 193381411288395776.0000</p>
  <p>It can be seen that in the second case the last digit is not &quot;7&quot; and it is &quot;6&quot;. Basically the &quot;as.numeric&quot; function decreases 1 unit from the number in the second case.</p>
  <p>Any help is appreciated.</p>