Article ID: 216727 - View products that this article applies to.
This article was previously published under Q216727
This article has been archived. It is offered "as is" and will no longer be updated.
When initializing a const int with a float literal, the value that is stored in the const int may be incorrect.
Use one of the following as workarounds:
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
This bug was corrected in Visual Studio 6.0 Service Pack 3.
For more information about Visual Studio service packs, click the following article numbers to view the articles in the Microsoft Knowledge Base:
(https://support.microsoft.com/kb/194022/ )Visual Studio 6.0 service packs, what, where, why
(https://support.microsoft.com/kb/194295/ )How to tell that a Visual Studio Service pack is installed
Note You find that the "ConstVal" value is an incorrect int type value.
Article ID: 216727 - Last Review: February 21, 2014 - Revision: 3.0