projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9eb2950
)
Roo/util/Format.js
author
john
<john@roojs.com>
Thu, 14 Jun 2018 08:34:42 +0000
(16:34 +0800)
committer
john
<john@roojs.com>
Thu, 14 Jun 2018 08:34:42 +0000
(16:34 +0800)
Roo/util/Format.js
patch
|
blob
|
history
diff --git
a/Roo/util/Format.js
b/Roo/util/Format.js
index
fa5a41e
..
1958ff4
100644
(file)
--- a/
Roo/util/Format.js
+++ b/
Roo/util/Format.js
@@
-177,6
+177,7
@@
Roo.util.Format = function(){
{
// multiply and round.
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;