Mohd Hanafi

ErnieM

Joined Apr 24, 2011
8,377
You don't need to do more then just cast the type and the compiler will do it for you.

Rich (BB code):
    float F; 
    int I;

    F = (float) I;
 
Top