Make int act like float

/ Published in: C++
Save to your folder(s)

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

Copy this code and paste it in your HTML
  1. int index;
  3. static_cast<float>(index);

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.