What are the different techniques used to convert float type of data to integer in C++?
#include using namespace std; struct database { i
I believe you can do this using a cast:
float f_val = 3.6f; int i_val = (int) f_val;