dojo string sprintf:%.3e : sprintf « Dojo toolkit « JavaScript Tutorial






<html>
  <head>
    <script type="text/javascript">
      var djConfig = {
        baseScriptUri : "js/dojo/",
        parseOnLoad : true
      };
    </script>
    <script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
    <script>
      dojo.require("dojox.string.Builder");
      dojo.require("dojox.string.sprintf");

      function testIt() {
        var s = dojox.string.sprintf("%.3e", 1234567890);
        alert(s)

      }
    </script>
  </head>
  <body onLoad="testIt();">
  </body>
</html>








29.24.sprintf
29.24.1.Integer sprintf
29.24.2.Leave space in sprintf
29.24.3.Output as char
29.24.4.dojo string sprintf:%.3e