Forum: C++
Feb 17th, 2005, 6:50 PM
|
|
Replies: 2
Views: 185
For now, I'm just using this little check.
if(n...
For now, I'm just using this little check.
if(n == 8) a = 3;
else a = log(n)/log(2);
I still don't know why it does not return the right value when n = 8. I'm going to try it in Linux and see if it...
|
Forum: C++
Feb 17th, 2005, 5:43 PM
|
|
Replies: 2
Views: 185
Problem converting double to int
First of all, this is standard C.
I have a statement in my code like this:
int x = log(8)/log(2)
After much confusion I found that x was assigned 2. This is not what I want though. I know that...
|