Is there ay JS function to find value before and after decimal point
<p>I am validating a decimal number using JavaScript.
Am just using <code>NaN</code></p>

<p>var a = 12345.67
Is there any javascript function to get the  count or the value itself before and after decimal point .</p>

<pre><code>before()  should return 1234
after() should return 67
</code></pre>

<p>Please dont suggest a substring!</p>
