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, 2 months
1,045 profile views
Last seen 17 hours ago