Stop floating point operations
<p>I'm displaying a text value and if by coincidence that text value happens to be numeric, then JavaScript displays it with a decimal .0.</p>

<p>Q: How do I write:</p>

<pre><code>if (X is numeric) {
   $('#Status').text(+X);
} else {
   $('#Status').text(X);
}
</code></pre>
