28,131
reputation
3
34
81

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;
611
answers
1
question
~1.1m
people reached
  • Member for 5 years, 9 months
  • 1,089 profile views
  • Last seen Aug 7 at 21:36

Top tags (217)

Score 1,131
Posts 298
Posts % 49
Score 652
Posts 179
Score 519
Posts 129
Score 487
Posts 128
Score 414
Posts 118
Score 294
Posts 72

Top posts (612)

View all questions and answers

Badges (118)

Gold

3

Rarest

Silver

34

Rarest

Bronze

81

Rarest