Skip to main content
JS1's user avatar
JS1's user avatar
JS1's user avatar
JS1
  • Member for 10 years, 11 months
  • Last seen more than a month ago

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;
This user doesn’t have any gold badges yet.
10
silver badges
9
bronze badges
3
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 %

Top posts