How to calculate the decimal point offset from 0
<p>I'm having a bit of a go slow in the brain department today and thought maybe somone had done this before. </p>

<p>Given the numbers below, what simple means could I use in Javascript to work out the decimal point as a number, eg:</p>

<ul>
<li>1 = Decimal point: 0</li>
<li>10 = Decimal point: 1</li>
<li>1678 = Decimal point: 3</li>
<li>-0.56 = Decimal point: -1</li>
<li>-0.0045 = Decimal point: -3</li>
</ul>
