ux/FlipCounter.js
authorAlan Knowles <alan@roojs.com>
Fri, 23 Dec 2016 05:43:13 +0000 (13:43 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 23 Dec 2016 05:43:13 +0000 (13:43 +0800)
ux/FlipCounter.js

index 405d5b4..d96d241 100644 (file)
@@ -120,7 +120,7 @@ Roo.extend(Roo.ux.FlipCounter, Roo.bootstrap.Component, {
     
     updateTo : function (num)
     {
-        var numStr = parseInt(num).toString();
+        var numStr = (1.0*num).toFixed(this.decimal);
         
         this.currentNumber = num;
         // Change the number of digits displayed if needed