title: Why use the 'int' data type instead of the 'float' data type?
body: <p>Lately I've been learning some C++ but I've run into a conundrum:</p>
  
  <p>As we know, the 'int' data type is used to hold integers and whole numbers, while the 'float' data type is used to define variables holding real and fractional numbers. However, I do find that I can place an integer into a variable of the 'float' data type just as easily, removing the need to use the 'int' type?</p>
  
  <p>If that is the case, why would I continue using the 'int' data type over 'float'? It would be more convenient to use the latter... would it be considered poor form?</p>