Roo/util/Math.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 11 Jan 2011 08:21:10 +0000 (16:21 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 11 Jan 2011 08:21:10 +0000 (16:21 +0800)
Roo/util/Math.js

index 52e4ea2..807b26a 100644 (file)
@@ -183,9 +183,10 @@ Roo.util.Math.prototype = {
             b = this._d, 
             d, p, n, x;
         console.log(b.join(','));    
-               for( this._f > 1 && !b[0]; 
-            --this._f, b.shift()
-        );
+               while( this._f > 1 && !b[0]) {
+            --this._f;
+            b.shift();
+        }
                console.log(b.join(','));    
         for(d = this._f, 
             p = this.precision + d,