Stats
28,876
reputation
1k
reached
2
answers
2
questions
Loading…
About
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;
Badges
View all badgesTop tags
View all tags3
Score
4
Posts
100
Posts %
3
Score
1
Posts
25
Posts %
0
Score
2
Posts
50
Posts %
0
Score
1
Posts
25
Posts %
0
Score
1
Posts
25
Posts %
0
Score
1
Posts
25
Posts %