Roo/util/Format.js
authorjohn <john@roojs.com>
Tue, 12 Jun 2018 09:03:31 +0000 (17:03 +0800)
committerjohn <john@roojs.com>
Tue, 12 Jun 2018 09:03:31 +0000 (17:03 +0800)
Roo/util/Format.js

index 2088bac..161ff4e 100644 (file)
@@ -173,7 +173,7 @@ Roo.util.Format = function(){
          * @param {Number} decimals number of decimal places
          * @return {String} The formatted currency string
          */
-        number : function(v, decimals, thousandsDelimiter = false)
+        number : function(v, decimals, thousandsDelimiter = ',')
         {
             // multiply and round.
             decimals = typeof(decimals) == 'undefined' ? 2 : decimals;
@@ -188,7 +188,6 @@ Roo.util.Format = function(){
             var ps = v.split('.');
             var whole = ps[0];
             
-            
             var r = /(\d+)(\d{3})/;
             // add comma's
             while (r.test(whole)) {