X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=examples%2Fmath.html;h=6350166cefa86928b348081dfa4b1efd706c76ec;hb=fc32d3336ffe6a4ac93549dab21fd04b7d7056d3;hp=754762620042b60de154e78ca8495fd058471405;hpb=ad7c5228e097dbbf94352b578ff3393eadb742a4;p=roojs1 diff --git a/examples/math.html b/examples/math.html index 7547626200..6350166cef 100644 --- a/examples/math.html +++ b/examples/math.html @@ -21,10 +21,17 @@ Roo.onReady(function() { a = new Roo.util.Math("123.004",5); - c = a.add("334.003"); - console.log(c); - + a = a.add("334.003"); + console.log("doing fixed"); + console.log(a.toFixed(3)); + 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)) + });