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

How do you determine the fudge factor?

Eg if you compare (x + 1.2) + (x + 2.3) < (2*x + 3.6) that goes wrong for big enough x.



Use the round function in that case.


How is that going to help? What precision do you want to round to?

You know that at big enough values, floating point numbers are farther apart than integers?




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

Search: