title: Fortran MOD and MODULO giving same results
body: <p>Compiling with <code>gfortran --version</code> == GNU Fortran (Homebrew GCC 8.2.0) 8.2.0</p>
  
  <p>When I write the following test code I get the functions <code>MOD</code> and <code>MODULO</code> giving the same results. However, as I understand it from several sources, <code>MOD</code> is supposed to give the remainder, and <code>MODULO</code> is supposed to give the integer quotient.</p>
  
  <pre><code>program test
      implicit none
  
      print *, mod(17,3)
      print *, mod(17.5,5.5)
      print *, mod(17.5d0,5.5)
      print *, mod(17.5,5.5d0)
  
      print *, modulo(17,3)
      print *, modulo(17.5,5.5)
      print *, modulo(17.5d0,5.5)
      print *, modulo(17.5,5.5d0)
  end program test
  </code></pre>
  
  <p>Prints out:</p>
  
  <p><code>2</code></p>
  
  <p><code>1.00000000</code></p>
  
  <p><code>1.0000000000000000</code></p>
  
  <p><code>1.0000000000000000</code></p>
  
  <p><code>2</code></p>
  
  <p><code>1.00000000</code></p>
  
  <p><code>1.0000000000000000</code></p>
  
  <p><code>1.0000000000000000</code></p>
  
  <p>The results are all the remainders, which is what <code>MOD</code> is supposed to do, but for <code>MODULO</code> isn't it supposed to print out the modulus, in this case <code>5</code> and then three <code>3</code>'s to varying precision?</p>