Shitfy
Shitfy

Reputation: 95

How to format number using format-number in xslt

I want to format float number in xslt? I know that I should use this function format-number, but don't really know.

example: 047.6000 to 47.60

Upvotes: 0

Views: 120

Answers (1)

imran
imran

Reputation: 461

You may use like this.
<xsl:value-of select="format-number(.,'#.00')"/>

Upvotes: 1

Related Questions