Why does Firebug say toFixed() is not a function?
<p>I am using jQuery 1.7.2 and jQuery UI 1.9.1. I am using the code below within a slider. (http://jqueryui.com/slider/)</p>

<p>I have a function that should test two values and depending on the difference between the two values reformat them (to the appropriate decimal place). If the difference is greater than 10, I will parse out the integer. If the difference is greater than 5, it should keep one decimal. Everything else, I will keep two decimals.  </p>

<p>When I enter two values that have a difference that is ten or less, I use the toFixed() function.  And, in Firebug, I see an error:</p>

<pre><code>TypeError: Low.toFixed is not a function
Low = Low.toFixed(2);
</code></pre>

<p>Is there something simple that I am doing wrong?  </p>

<p>Here is my code:</p>

<pre><code>var Low = $SliderValFrom.val(),
High = $SliderValTo.val();

// THE NUMBER IS VALID
if (isNaN(Low) == false &amp;&amp; isNaN(High) == false) {
    Diff = High - Low;
if (Diff &gt; 10) {
      Low = parseInt(Low);  
  High = parseInt(High);    
} else if (Diff &gt; 5) {
       Low = Low.toFixed(1);
       High = High.toFixed(1);
} else {
       Low = Low.toFixed(2);
   High = High.toFixed(2);
}
}
</code></pre>
