Is there anything similar to format-number in XSL that could take a number and format it like '#0.00' and not round it?
So,
- 5 would become 5.00
- 14.6 would become 14.60
- 1.375 would become 1.37
Just format-number doesn't work because it would round 1.375 to 1.38
<xsl:value-of select="format-number(MY_NUMBER, '#0.00')" />
This concatenation substring mess won't work for 5 (because there is no ".") and won't add a zero to the end of 14.6
<xsl:value-of select="concat(substring-before(MY_NUMBER,'.'), '.', substring(substring-after(MY_NUMBER,'.'),1,2))" />
I'm I going to have to do a messy:
<xsl:choose>
<xsl:when test=""></xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
Thanks so much in advance!