X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=examples%2Fmath.html;h=6350166cefa86928b348081dfa4b1efd706c76ec;hb=fc32d3336ffe6a4ac93549dab21fd04b7d7056d3;hp=81657bbf94ded1b3155f7368d6df6c5c3893e3e2;hpb=e98ae38514aecbebece01ce7f4b90b3e6dc3b015;p=roojs1 diff --git a/examples/math.html b/examples/math.html index 81657bbf94..6350166cef 100644 --- 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"); + 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)) + });