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

Float divided by int or int divided by float is also an issue. Does 4.25 / 2 equal 2.125 or 2? Does 16 / 3.25 equal 4 or 5 or some floating point number in between?



You do what FIMUL does. The other options are silly.


I don't understand. You want to convert everything to floats all the time? Then just start and stay in float-land and never use ints.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: