Hi,
The following only outputs a zero. Not sure why.
cout << "Percent Connected: " << (Ccounter/(totalElements*6))*100 << " %\n\n" << endl;
Ccounter and totalElements are Ints.
Thanks
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Thread: Float display as 0Threaded View
|
Click Here to Expand Forum to Full Width |