projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9a17bc
)
Roo/util/Format.js
author
Alan Knowles
<alan@roojs.com>
Tue, 31 Jul 2012 05:35:07 +0000
(13:35 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 31 Jul 2012 05:35:07 +0000
(13:35 +0800)
Roo/util/Format.js
patch
|
blob
|
history
diff --git
a/Roo/util/Format.js
b/Roo/util/Format.js
index
c195a34
..
eb81d99
100644
(file)
--- a/
Roo/util/Format.js
+++ b/
Roo/util/Format.js
@@
-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;