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, 4 months
1,063 profile views
Last seen Mar 28 at 10:45