Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For this reason R has a function for comparing results of floating point math: all.equal()

it is quite tricky as it might show that .1+.2 is 0.3, but this is only due to the fact that default output is a subject of default formatting (i.e. occulting more precision numbers)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: