projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix attribute
[roojs1]
/
examples
/
math.html
diff --git
a/examples/math.html
b/examples/math.html
index
81657bb
..
6350166
100644
(file)
--- a/
examples/math.html
+++ b/
examples/math.html
@@
-22,9
+22,16
@@
a = new Roo.util.Math("123.004",5);
a = a.add("334.003");
a = new Roo.util.Math("123.004",5);
a = a.add("334.003");
+ console.log("doing fixed");
+ console.log(a.toFixed(3));
console.log(a.toFixed(2));
console.log(a.toFixed(2));
-
+ var qty = new Roo.util.Math(3,5)
+
+ var am = qty.multiply('15.80');
+ console.log(am)
+ console.log(am.toFixed(2))
+
});
});