Hacker News new | past | comments | ask | show | jobs | submit login

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: