title: how to split a number in javascript Linux Firefox getting incorrect value, windows show the correct value
body: <p>how can I split a number into sub digits. I have a  number <code>20:55</code> n need to split in to two parts as <code>20</code> and <code>55</code>. </p>
  
  <pre><code>var mynumber = 20:55;
  var split = mynumber.toString();
  document.write("Hour : " +  split[0]);
  document.write("Minutes : " +  split[1]);
  </code></pre>
  
  <p>but am getting wrong value after toString() function call.</p>
  
  <p>EDIT: 1  This is what I want. This is working fine but only works with windows. In linux Firefox am not getting the correct value in function .. something like <code>12.200000000000000001</code> instead of <code>12.25</code></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  var myarray = new Array();
  myarray =   [[12.25, 1],[13.25,1]];
  //alert(myarray[0][0]);
  func(myarray[0][0]) ;
  function func(n) {
      var split = n.split(".");
      document.writeln("Number  : " +  n); // Number  : 12.25
      document.writeln("Hour : " +  split[0]); // Hour : 12
      document.writeln("Minutes : " +  split[1]); // Minutes : 25
  }
  &lt;/script&gt;
  </code></pre>