Subject: Re: [xsl] Getting result upto 10 decimal points From: James Fuller <jim.fuller@xxxxxxxxxxxxxx> Date: Wed, 08 Jun 2005 13:23:01 +0200 |
Mukul Gandhi wrote: >I am given this XML document - > ><xml> > <pulse>70.565455</pulse> > <amplitude>100.8765466</amplitude> ></xml> > >I have to output the "pulse / amplitude" upto 10 >decimal places ..? > >Any helps please ? > > if its just a matter of formating use either xsl:decimal-format pr format-number(), but realise that both were quite under spec in XSLT 1.0...and I wont even comment on the issue of precision with the numbers that you have presented above. http://www.zvon.org/xxl/XSLTreference/Output/function_format-number.html http://www.w3schools.com/xsl/el_decimal-format.asp you may find some more reasoning here http://www.dpawson.co.uk/xsl/sect2/N5121.html#d6069e652 gl, Jim Fuller
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Getting result upto 10 decima, Mukul Gandhi | Thread | Re: [xsl] Getting result upto 10 de, Mukul Gandhi |
RE: [xsl] Getting result upto 10 de, Kirkham, Pete (UK) | Date | Re: [xsl] XSL-FO - Running FOP on t, omprakash . v |
Month |