How to convert int to float?
How to convert int to float?
Last edited by babygal; 21st June 2010 at 03:43.
Are you versed with data types ?
There are some implicit conversions done by the compiler itself.
You can simply use -
float f = i; // i being an integer.
Bookmarks