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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.
26,990 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;

Top Tags (216)

Score 1,083
Posts 291
Posts % 48
Score 629
Posts 176
Score 505
Posts 129
Score 463
Posts 126
Score 387
Posts 116
Score 279
Posts 71

Top Posts (601) All Questions Answers | Votes Newest

View all questions and answers

Badges (107)

Gold 3

Rarest

Silver 28

Rarest

Bronze 76

Rarest