Stats
28,476
reputation
1.4m
reached
610
answers
1
question
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 badges
3
gold badges
-
cJun 24, 2017
-
ElectorateDec 2, 2015
-
FanaticJun 23, 2015
40
silver badges
-
algorithmJan 16, 2017
-
performanceMar 6, 2017
-
javaNov 18, 2015
83
bronze badges
-
integerDec 1, 2020
-
time-limit-exceededJun 23, 2020
-
linked-listMar 4, 2019
Top tags
View all tags
1,152
Score
298
Posts
49
Posts %
655
Score
178
Posts
29
Posts %
528
Score
129
Posts
21
Posts %
491
Score
128
Posts
21
Posts %
418
Score
118
Posts
19
Posts %
299
Score
72
Posts
12
Posts %
Top Meta posts
2
2