title: How do I get the decimal places of a floating point number in Javascript?
body: <p>What I would like to have is the almost opposite of Number.prototype.toPrecision(), meaning that when i have number, how many decimals does it have? E.g.</p>
  
  <pre><code>(12.3456).getDecimals() // 4
  </code></pre>