X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=examples%2Fmath.html;h=6350166cefa86928b348081dfa4b1efd706c76ec;hp=8598ca5a0804fe1adebe942ad0c10c820d3e4f18;hb=refs%2Fheads%2Fwip_alan_T5944_trim_leading_white_space_from;hpb=280caf1d26b96f033ed5d831c1d8026e0ccd8af2 diff --git a/examples/math.html b/examples/math.html index 8598ca5a08..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(a); - + 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)) + });