28,131
reputation
5
9

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;
2
answers
2
questions
~1k
people reached
  • Member for 5 years, 8 months
  • 8 profile views
  • Last seen Jun 7 '19 at 4:38

Top tags (9)

Score 3
Posts 4
Posts % 100
Score 3
Posts 1
Score 0
Posts 2
Score 0
Posts 1
Score 0
Posts 1
Score 0
Posts 1

Top posts (4)

Badges (14)

Gold

Silver

5

Rarest

Bronze

9

Rarest