Re: [Xsltforms-support] format-number()
Brought to you by:
alain-couthures
From: <fr...@fl...> - 2011-01-05 14:16:58
|
Hi Alain, First of all, sorry for not have changed the subject line, I pressed 'send' too quick. In my Invoice form I need to represent (calculated) amounts with 2 digits after the decimal point or comma. (Round(100*X) div 100) doesn't work as it suppresses trailing zeros and sometimes produces unwanted decimals. I can think of a fairly complex formula, manipulating each amount as a string, but that is very cumbersome. So yes, a function to format numbers would come handy. Thanks! Fred Citeren COUTHURES Alain <ala...@ag...>: > Hello Fred, > >> Short question: has the format-number() function been implemented? > > This can be an useful extension. It is not implemented because > format-number() is not an XPath function but an XSLT function > potentially referencing xsl:decimal-format elements. > > Would you need an xsl:decimal-format element? > > Thanks! > > -Alain |