Roo/util/Format.js
authorAlan Knowles <alan@roojs.com>
Tue, 31 Jul 2012 05:35:07 +0000 (13:35 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 31 Jul 2012 05:35:07 +0000 (13:35 +0800)
Roo/util/Format.js

index c195a34..eb81d99 100644 (file)
@@ -176,7 +176,7 @@ Roo.util.Format = function(){
         number : function(v,decimals)
         {
             // multiply and round.
-            decimals = typeof(decimals) == 'undefined' ? 2 : decimals
+            decimals = typeof(decimals) == 'undefined' ? 2 : decimals;
             var mul = Math.pow(10, decimals);
             var zero = String(mul).substring(1);
             v = (Math.round((v-0)*mul))/mul;