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

It's very common in games.

Integers are always an option, of course, but in this context it's hard to beat the convenience of just storing seconds in a floating point number.

Related: https://randomascii.wordpress.com/2012/02/13/dont-store-that...



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

Search: