At one point in my C++, non-CLR program, the following code:
outputs 107. I have no idea why; is it something about a conversion from unsigned int to float?Code:unsigned int size = 3; float maxX = (float)(int(size-1))/2.0f; std::cout << maxX;
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 7 of 7
Threaded View
|
Click Here to Expand Forum to Full Width |