Thread
:
Problem converting double to int
View Single Post
Feb 17th, 2005, 6:50 PM
#
2
Jared
Newbie
Join Date: Feb 2005
Posts: 2
Rep Power:
0
For now, I'm just using this little check.
(
Toggle Plain Text
)
if(n == 8) a = 3; else a = log(n)/log(2);
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 works right there.
Jared
View Public Profile
Find More Posts by Jared