3 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
4 <title>Array Grid Example</title>
6 <link rel="stylesheet" type="text/css" href="../../cssX/roojs-all.css"/>
7 <link rel="stylesheet" type="text/css" href="../../cssX/xtheme-slate.css"/>
9 <script type="text/javascript" src="../roojs-all.js"></script>
11 <script type="text/javascript" src="../Roo/util/Math.js"></script>
15 <h1>Math utile example</h1>
16 <p>This example shows how to create a grid from Array data.</p>
17 <p>Note that the js is not minified so it is readable. See
21 Roo.onReady(function() {
23 a = new Roo.util.Math("123.004",5);
25 console.log("doing fixed");
26 console.log(a.toFixed(3));
27 console.log(a.toFixed(2));
29 var qty = new Roo.util.Math(3,5)
31 var am = qty.multiply('15.80');
33 console.log(am.toFixed(2))