[xsl] format-number incorrectly formatting number (using fop 0.91beta)

Subject: [xsl] format-number incorrectly formatting number (using fop 0.91beta)
From: "Ian & Chris" <bakeric@xxxxxxxxxxxxxxx>
Date: Tue, 18 Apr 2006 20:27:44 +1000
Hi all,

 I am currently trying to format a large number (19v2) in a report, the
format-number function seems to do incorrect formatting when it deals with
large numbers, and an example follows:

<xsl:value-of select='format-number(-34567890123456787.00,"###,###.00 
;###,###.00CR")'/>

In the above example the number should read

34,567,890,123,456,787.00CR

But when it formats it is set to:

34,567,890,123,456,788.00CR


Any ideas, OK it is a large number, and you might say well you would never
use this, but, in insurance companies in Indonesia the numbers for
re-insurance in the local currency (rupiah). It may get to many billions for
a year.


Thanks, Ian

Current Thread