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

I wasn't surprised, but that is not what I would expect if I were to see that expression. Two reasons for that: even though there is a decimal, I still mentally parsed it as an integer, and I wouldn't be thnking of the precision of the value.

(That said, I would never enter an integer with a decimal, and I would think of precision if it was a float. That said that said, there are other ways to bump into that problem which wouldn't make it so obvious - such as dealing with inputs from a user.)



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

Search: