Get the percentage of a number with javascript : <p>So I am creating a web app and I get some data.</p>

<p>There are points you have now (now=284), and total points (total=1000). So, The difference between them is dif=716.</p>

<p>How do I use javascript to turn the difference in to a percentage value , for example 32% or whatever?</p>

<p>Thanks</p>
