title: Java Script Currency Format - Convert Code to Google Apps Script
body: <p>Can anyone tell me how to modify this to work in Google Apps Script</p>
  
  <pre><code>       function formatCurrency(symbol, amount) {
                 aDigits = amount.toFixed(2).split(".");
                 aDigits[0] = aDigits[0].split("").reverse().join("")
                         .replace(/(\d{3})(?=\d)/g,"$1,").split("").reverse().join("");
                 return symbol + aDigits.join(".");
  }
  </code></pre>
  
  <p>Would be great to have this working for currency formatting.</p>
  
  <p>Thanks,</p>
  
  <p>Jon</p>