News for hackers. Stuff that matters.
Re:Why does changing 0.1f to 0 slow down performance by 10x? by ArbitraryLimits on Tuesday March 13, 2012 @02:00PM (#3699582)
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.

There are no comments on this comment yet.