Simplified float to int conversion