386
reputation
1
1

JS1

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
  • 1 profile view
  • Last seen Nov 9 '14 at 9:53