Member of the Floating point police™, who believe that unnecessary and/or careless use of floating point is a crime.
// Please use x*x here instead. int xsquared = pow(x, 2); // num = 1000 will cause this to fail. int numDigits = (log(num) / log(10)) + 1;
Member for 4 years, 7 months
33 profile views
Last seen Jun 3 at 7:47