Stack Exchange Network

Stack Exchange network consists of 174 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
27,160
reputation
3
28
76

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;
603
answers
1
question
~700k
people reached

Top Tags (216)

Score 1,094
Posts 293
Posts % 49
Score 629
Posts 176
Score 504
Posts 129
Score 467
Posts 127
Score 393
Posts 117
Score 280
Posts 71

Top Posts (604) All Questions Answers | Votes Newest

View all questions and answers

Badges (107)

Gold

3

Rarest

Silver

28

Rarest

Bronze

76

Rarest