XPath / XPath-Funktionen / Zahlenfunktionen / format-number
![]() |
![]() |
➪ format-number formatiert eine Zahl nach einem vozugebendem Muster.
Auf dieser Seite:Signaturen:
format-number($value as numeric?,
$picture as xs:string)
as xs:string
format-number($value as numeric?,
$picture as xs:string,
$decimal-format-name as xs:string?)
as xs:string
Siehe https://www.w3.org/TR/xpath-functions-31/#func-format-number.
Siehe https://www.w3.org/TR/xpath-functions-30/#func-format-number.
Wird häufig in Kombination mit xsl:decimal-format verwendet.
Dezimaltrenner | '.' |
Gruppierungstrenner | ',' |
format-number(1.9, '#,###.00') | '1.90' |
format-number(-3.8, '00,000,000.00') | '-00,000,003.80' |
(10 to 20)
=> for-each(function($p){
format-number($p div 100, '#,##0.00')
})
Ergebnis:
0.10
0.11
0.12
0.13
0.14
0.15
0.16
0.17
0.18
0.19
0.20
wg / 22. März 2020
Fragen? Anmerkungen? Tipps?
Bitte nehmen Sie Kontakt zu mir auf.
ᐅ math:log
V.i.S.d.P.: Wilfried Grupe * Klus 6 * 37643 Negenborn
☎ 0151. 750 360 61 * eMail: info10@wilfried-grupe.de