Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
216
reputation
1
6

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;
3
answers
0
questions
~2k
people reached
  • Member for 4 years, 7 months
  • 33 profile views
  • Last seen Jun 3 at 7:47

Top tags (5)

Score 8
Posts 1
Score 8
Posts 1
Score 2
Posts 2
Score 2
Posts 2
Score 1
Posts 1

Top posts (3) All Questions Answers | Votes Newest

Badges (7)

Gold

Silver

1

Rarest

Bronze

6

Rarest