title: INT vs FLOOR in Fortran
body: <p>According to gfortran documentation, <a href="https://gcc.gnu.org/onlinedocs/gfortran/INT.html" rel="nofollow noreferrer"><code>INT(x)</code></a> and <a href="https://gcc.gnu.org/onlinedocs/gfortran/FLOOR.html" rel="nofollow noreferrer"><code>FLOOR(x)</code></a> both take input <code>x</code> and convert <code>x</code> to integer type. <code>FLOOR</code> apparently only allows input of type REAL whereas <code>INT</code> takes input of type INTEGER, REAL, and complex.</p>
  <p>Is the allowed input type the only difference between <code>INT</code> and <code>FLOOR</code>? If so, can anyone explain why <code>FLOOR</code> exists since it is apparently superfluous?</p>
  <p>The &quot;Similar Questions&quot; box showed similar Stack Overflow questions in <a href="https://stackoverflow.com/questions/2604235/c-difference-between-intx-and-floorx">C</a>, <a href="https://stackoverflow.com/questions/3300290/cast-to-int-vs-floor">C++</a>, and <a href="https://stackoverflow.com/questions/31036098/what-is-the-difference-between-int-and-floor-in-python-3">Python3</a>, but apparently no one has asked this question for Fortran yet, which led me to getting this deep into asking it.</p>
  <p>Including Fortran in my quick searches on <a href="https://www.google.com/?gws_rd=ssl#q=difference+between+floor+and+INT+fortran+90" rel="nofollow noreferrer">Google</a> and <a href="https://stackoverflow.com/search?page=2&amp;tab=relevance&amp;q=int%20fortran%2090">Stack Overflow</a> meant nothing useful appeared. So this is admittedly a duplicate (unless Fortran has <code>INT</code> and <code>FLOOR</code> quirks separating it from C/C++/Python) but I think it will have utility in allowing the result to be more easily/quickly searchable.</p>