Why does as.numeric add decimal places when converting a character?

前端 未结 0 1493
囚心锁ツ
囚心锁ツ 2021-01-22 22:04

The first line gives me 0.1 and the second line gives me 0.10000000000000001. Why does this happen? Is rounding a viable solution? Or is there a more precise solution?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题