Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Rounding errors in financial app transforms


Subject: Re: [xsl] Rounding errors in financial app transforms
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 26 Jul 2007 14:39:40 +0100

> So the intermediate product has double the precision of the original
> arguments.

er yes exactly, but since xsd::integer/xsd:decimal are high (and in some
implementations arbitrary) precision, doubling the precision is not
exactly relevant. If you do the multiply first it _wont_ overflow it
will just eat your entire memory storing a gazillion digits (perhaps)

David


________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________


Current Thread
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor