Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 2 of 2
Search took 0.00 seconds; generated 11 minute(s) ago.
Search: Posts Made By: Jared
Forum: C++ Feb 17th, 2005, 6:50 PM
Replies: 2
Views: 185
Posted By Jared
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
Posted By Jared
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...
Showing results 1 to 2 of 2

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:48 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC