title: ArraySum of a list
body: <p>I am trying to add all the values of all the numbers in a list.</p>
  
  <p>So this is what I tried,</p>
  
  <pre><code>&lt;cfloop query="get_total_merchant"&gt;
      &lt;cfset tx_amt_total = #tx_amount# + (#tx_amount# * (#merchantFee#/100))&gt;
      #ArraySum(tx_amt_total)#
  &lt;/cfloop&gt; 
  </code></pre>
  
  <p>So basically what <code>tx_amt_total</code> will display is something like <code>1 2 3 4</code>. So I am trying to add 1 + 2 + 3 + 4 which should give me 10.</p>
  
  <p>However, from what I tried, I am getting an error message: <code>Object of type class java.lang.Double cannot be used as an array</code></p>
  
  <p>So how do I fix my code?</p>