home contribute faq download

FunctX XSLT Functions

fn:format-number

Format a number

Google
Webxsltfunctions.com

Description

The fn:format-number function formats $value as a string using the picture string specified by $picture and $decimal-format-name or the default decimal-format, if there is no $decimal-format-name argument. The syntax of the picture string is described in section 16.4.2 of the XSLT 2.0 recommendation. Note: this is an XSLT-only function; it is not available in XQuery or XPath.

Arguments and Return Type

NameType
$value numeric?
$picture xs:string
$decimal-format-name xs:string
return value xs:string

Examples

XSLT ExampleResults
No examples are currently available.

See Also

functx:pad-integer-to-lengthPads an integer to a desired length by adding leading zeros

History

Published OnLast UpdatedContributor(s)
2007-03-172007-03-17W3C, XSLT 2.0, http://www.w3.org/TR/xslt20/
Datypic XSLT Services

Recommended Reading:

XQuery