title: How to subtract two doubles?
body: <p>I want to get IRQ in Spark. How can I subtract two values (double or int)? </p>
  
  <p>I tried the code below but only got error:</p>
  
  <pre><code>scala&gt; Q1
  res103: org.apache.spark.sql.Row = [11.09314]
  scala&gt; Q3
  res104: org.apache.spark.sql.Row = [34.370419]
  scala&gt; val IRQ = Math.abs(Q3-Q1)
  &lt;console&gt;:43: error: value - is not a member of org.apache.spark.sql.Row
         val IRQ = Math.abs(Q3-Q1)
  </code></pre>