[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Getting result upto 10 decimal points

Subject: Re: Getting result upto 10 decimal points
From: James Fuller <jim.fuller@xxxxxxxxxxxxxx>
Date: Wed, 08 Jun 2005 13:23:01 +0200
decimal in xml
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.