No, It is an error. '0' is a pattern, meaning round to integer. I use other formatter, the result is ok.
--- Chris Bowditch <[EMAIL PROTECTED]> wrote: > lijun zou wrote: > > > Hi, I am trying to generate PDF using FOP. > > But I got a rounding error when using the > following > > fo script > > <fo:block> > > <xsl:value-of select="format-number(0.5,'0')"/> > > </fo:block> > > This is not a "rounding error" You have specified > your format to be "0", so > the string "0" is always output. I think what you > need is: > > <xsl:value-of > select="format-number(0.5,'#,##0.0')"/> > > <snip/> > > Chris > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' http://movies.yahoo.com/showtimes/movie?mid=1808405861 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]