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 5 years, 11 months
1,098 profile views
Last seen 2 days ago