title: Pure Javascript - Turn number into a %
body: <p>My program spits out a number between <code>0</code> and <code>1</code>, and I cant change that. I need to turn it into a <code>%</code> to use as a variable for a CSS selector.</p>
  
  <pre><code>&lt;div id="Value"&gt;0.50&lt;/div&gt;
  
  &lt;script&gt;
  var element = document.getElementById("Value");
  var percent =  element * 100;
  &lt;/script&gt;
  </code></pre>
  
  <p>But how am I meant to put a <code>%</code> symbol on the end so I can do this:</p>
  
  <pre><code>document.getElementById("circle").style.marginLeft = percent;
  </code></pre>
  
  <p>Any help would be appreciated, thank you.</p>