I want to get the output with 2 decimal numbers
<pre><code>&lt;xsl:value-of select="format-number(xs:Position/xs:Weekly_Hours,'##.##')"/&gt;    
</code></pre>

<p>So if I give it as above, its showing it cannot convert string to integer.</p>

<p>I tried this also , but same </p>

<pre><code>&lt;xsl:variable name="myVar" select="xs:Position/xs:Weekly_Hours"/&gt;
&lt;xsl:value-of select="format-number($myVar,'##.##')"/&gt; 
</code></pre>