Re: Trailing zeros
Posted by
Alessandro Vernet on
Jun 26, 2009; 9:25pm
URL: https://discuss.orbeon.com/Problem-with-xforms-group-inside-a-Table-with-3-7-1-tp45168p45178.html
Gopi,
Reddy, Gopikrishna wrote
<xforms:setvalue ref="node1" value="xs:decimal('14.00')"/>
Result is
14
Expected output
14.00
This is just the way it is in XPath. If you convert 14.00 to a decimal, and then convert it back to a string, you get just 14. You can use the XSLT 2.0 function format-number() to format a number the way you want (see:
http://www.orbeon.com/ops/doc/reference-xforms-functions#d9e94).
Alex