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
27,380
reputation
3
29
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;
605
answers
1
question
~799k
people reached
  • Member for 4 years, 3 months
  • 918 profile views
  • Last seen 18 hours ago

Top Tags (216)

Score 1,104
Posts 294
Posts % 49
Score 632
Posts 176
Score 510
Posts 129
Score 469
Posts 127
Score 398
Posts 118
Score 285
Posts 72

Top Posts (606) All Questions Answers | Votes Newest

View all questions and answers

Badges (108)

Gold

3

Rarest

Silver

29

Rarest

Bronze

76

Rarest