split not working
<p>How do i split decimal numbers? The variable <code>bidnumber</code> is <code>10.70</code>.</p>

<pre><code>var bidnumber = $(this).parent('div').siblings('.advert-details').find('tr:eq(3)').find('.advert-details-col-2').attr('data-bid');
bidnumber.toString().split('.');
var first = bidnumber[0];
var second = bidnumber[1];
alert(bidnumber[0]);
second.substr(0, 1);
var finalnumber = first + '.' + second;
</code></pre>

<p>When i alert <code>bid[0]</code>, it should alert <code>10</code>.. Instead <code>1</code> is alerted. I don't get where i've gone wrong?</p>
