6

Numbers: What You Think Is Not What You Get

 3 years ago
source link: https://yihui.org/cn/2007/05/numbers-what-you-think-is-not-what-you-get/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Numbers: What You Think Is Not What You Get

谢益辉 / 2007-05-07


For example:

> 0.02 / 0.00000000001 - 2000000000
[1] 2.384186e-07
> 1000 * (.15 + .3) - 450
[1] -5.684342e-14
> 0.02/0.00000000001 == 2000000000
[1] FALSE
> 1000*(.15 + .3) == 450
[1] FALSE

Yes, this is too old a topic.

My Emacs Does Not Speak Statistics :-( A Story I Told to My Group Members

Disqus Utterances Preferences

© Yihui Xie 2005 - 2020

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK