title: SQL EXP raising Arithmetic overflow error
body: <p>For whatever reason, the below is failing as a result of an Arithmetic overflow error. I've tried casting and converting with no success. Any ideas?</p>
  
  <pre><code>DECLARE 
      @s INT = DATEDIFF(SECOND, '19700101', @EndDate),
      @e INT = DATEDIFF(SECOND, '19700101', @StartDate)
  
  DECLARE @X FLOAT = @s-@e
  
  SELECT EXP(@X)
  </code></pre>
  
  <blockquote>
    <p>Arithmetic overflow error converting expression to data type float.</p>
  </blockquote>