title: Convert data value to decimals?
body: <p>I have a function with an <code>argument</code> called <code>value</code>. This is used to pass the integer value of <code>value</code> to an array.</p>
  
  <p>I want to take the value it returns and set it to two decimal places using toFixed(), but I am not sure at what point I can do this.</p>
  
  <pre><code>function getArrayOfItems(value, id, title) {
   return {
    Size: value
    };
  };
  
  var theData = [
              getArrayOfItems(data.average, 'average', 'Average'),
              getArrayOfItems(data.smallest, 'smallest', 'Smallest'),
              getArrayOfItems(data.largest, 'largest', 'Largest')
          ];
  </code></pre>
  
  <p>It eventually is passed to an object as such</p>
  
  <pre><code>var options = {
    amount: value,
    id: id,
    title: title
  };
  </code></pre>
  
  <p>So the value is determined by the value of <code>data.average</code> etc, but it nearly always returns a 4 or 5 digit value. I want to parse this value to two decimal places. Is this possible?</p>