Name
xslt_format_number — returns formatted string representation of a numeric value
Synopsis
xslt_format_number
(
|
number any , |
format_string
varchar
) ; |
Description
xslt_format_number is an function wrapper for the format-number() XSLT function.
It always uses the default formatting parameters described in the XSLT standard.
Parameters
number
integer , numeric or string .
format_string
string
Return Values
An
string
representation of the numeric value of
number
converted according to the format
format_string
.
Examples
Example 24.534. Simple examples
xslt_format_number (5351, '#,###'), 5,351 xslt_format_number ('5351', '#.00'), 5351.00 xslt_format_number (53.51, '#.0000'), 53.5100 xslt_format_number (53.51, '0000.0000'), 0053.5100 xslt_format_number (53.51, '0000.####'), 0053.51 xslt_format_number (53.56, '0.0'); 53.6