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

Ideally, you'll want to do distance calculations in fixed point numbers (of desired resolution). Floating point works well as a first approximation, but unless you can make sure that you are not going to end up wandering in the weeds (and ensuring that required understanding of computational numerics), you should probably replace them with fixed point once you understand the problem and the solution and know the limits involved.


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

Search: