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,693
reputation
3
31
77

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;
611
answers
1
question
~844k
people reached
  • Member for 4 years, 5 months
  • 940 profile views
  • Last seen 10 hours ago

Top Tags (217)

Score 1,116
Posts 298
Posts % 49
Score 642
Posts 179
Score 514
Posts 129
Score 478
Posts 128
Score 403
Posts 118
Score 287
Posts 72

Top Posts (612) All Questions Answers | Votes Newest

View all questions and answers

Badges (111)

Gold

3

Rarest

Silver

31

Rarest

Bronze

77

Rarest