|
-
November 10th, 2005, 03:04 PM
#1
conversions
Hi again
For love of god, how can I convert a integer to a float??
I have this function that returns always zero:
int iDrawIHeight = 480;
iScreenHeight = 768;
float iPorcentage = ((float)(iDrawedHeight/iScreenHeight));
The result that must returned is 0.62, but it returns zero. Why?
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
|