int n;
float f = 2.01;

n = (int)f;