Posted By

dorseye on 04/12/10


Tagged

float c staticcast


Versions (?)

Make int act like float


 / Published in: C++
 

Handy for built in functions that aren't fond of 'int' types.

  1. int index;
  2.  
  3. static_cast<float>(index);

Report this snippet  

You need to login to post a comment.