|
-
April 10th, 1999, 01:55 AM
#1
m_floatValue = m_nValue * 0.5 >> Warning!
float m_floatValue;
int m_nValue = 5;
m_floatValue = m_nValue * .5 ; // it give warning message.
: warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
I am not dealing with 'double' at all, and the operation I am doing is quite reasonable. Why does the compiler give this error and how to correct it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|