title: Calculation, replace dot with a comma
body: <p>I have an order form on which I use the jQuery Calculation Plugin to sum up the total.</p>
  
  <p>This summing up works fine, yet there is a problem with the produced 'sum'. In the sum I wish to replace any dot with a comma.</p>
  
  <p>The basis of the code is;</p>
  
  <pre><code>function ($this) {
      var sum = $this.sum();
      $("#totaal").html("&amp;euro; " + sum2);
  }
  </code></pre>
  
  <p>Using a .replace() directly on the var sum doesn't work (referenced function not available on object). I have also tried this (but without effect);</p>
  
  <pre><code>var sum2 = sum.toString().replace(',', '.');
  </code></pre>
  
  <p>As I'm kind of new to jQuery I'm pretty much stuck now, could anyone point me in the right direction?</p>