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

I was astonished in my computer architecture class as an undergraduate to find out that the C language specification requires that all single-precision floating point numbers be converted to double-precision before any operations are done on them. So working with float's rather than double's in C is not only more vulnerable to underflow and what-not, but it's slower. Since then I've never declared a variable to be a float again.


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

Search: