title: EInvalidOp exception in Delphi
body: <p>my Delphi app raises an <code>EInvalidOp</code> exception on a user PC : <strong>Invalid floating point operation</strong></p>
  
  <p>here :</p>
  
  <pre><code>var
  progress100 :extended;
  taille_cur : int64;
  i : Integer;
  
  begin
  
  ...
  
  progress100 := min(taille_cur div 2 * 100 / i, 99) // **raises the exception**
  
  
  ....
  end;
  </code></pre>
  
  <p>I don't know why. 
  It worked great when progress100 was an Integer. I changed it to Extended.
  Or maybe variable <code>i</code> is zero...</p>
  
  <p>please help.</p>