xsl-list
[Top] [All Lists]

RE: Decimal precision

2005-02-02 13:39:07
Nevermind, I figured it out using format-number.

 <xsl:value-of
select="format-number(sum(claim/claim_line/reimbursement_amount),
'###,###.00')"/>



I'd still like to know if XSLT version 2 can do the math "correctly".

Thanks,
Jim Neff

-----Original Message-----
From: Jim Neff [mailto:jneff(_at_)blockvision(_dot_)com] 
Sent: Wednesday, February 02, 2005 3:17 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Decimal precision

Greetings,

I found Michael Kay's response to my same question here:

http://www.biglist.com/lists/xsl-list/archives/200412/msg00689.html

My problem is the same, but in Michael's response it sounds 
like there is a way to get my XSLT version 2 stylesheet to 
use decimals correctly.  Is this true?  If so, how is it 
different under version 2 than 1?

If not, then can someone please post an example of how to use the
format-number() function to sum decimals correctly?

Thanks,
Jim Neff


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>