title: add <sup></sup> on last digit of number for json array
body: <pre><code>    [{"dir":"down","sym":"oo","b":"1.35553","a":"1.35556"},
      {"dir":"down","sym":"pp","b":"1.64442","a":"1.64451"},
      {"dir":"down","sym":"qq","b":"104.603","a":"104.609"},
      {"dir":"up","sym":"rr","b":"0.88186","a":"0.88191"},
      {"dir":"up","sym":"ss","b":"1.09667","a":"1.09672"}]
  </code></pre>
  
  <p>from the above json i need to add <sup></sup> for the b &amp; a both last digit number using jquery , my jquery is</p>
  
  <pre><code>   &lt;script type="text/javascript"&gt;
      jQuery(window).load(function(){
      setInterval(function() {
      $.ajax({
          cache: false,
              url: 'get.php',
              dataType: 'json',
              success: function(json){
              var dd="";
              for(var i=0;i&lt;json.length;i++){
                  if(json[i].dir == 'up'){
               var ii= '&lt;img src="img/up.gif" /&gt;';        
              } else {
              var ii= '&lt;img src="img/down.gif" /&gt;';       
              }
                  dd += ii + '-' + json[i].sym+ '-' + json[i].b+ '-' + json[i].a+'--';
              }
      $('#divToRefresh').html(dd);
          }
      });
      }, 1000); 
      });
      &lt;/script&gt;
  </code></pre>
  
  <p>i need like this example :
       <pre>
       json[0].b="1.3555<sup>3</sup>";
       json[0].a="1.3555<sup>6</sup>";
       </pre></p>
  
  <p>how i get like above example from the json code through jquery, any idea..</p>