Re: [xslt] floor(), ceiling(), and round() functions and negative values



Bjorn Reese (breese@mail1.stofanet.dk) wrote:
> Ardo van Rangelrooij wrote:
> 
> > the following output is generated with libxslt v1.0.27:
> > 
> >     floor(-0)   = 0 (should be -0)
> >     ceiling(-0) = 0 (should be -0)
> >     round(-0)   = 0 (should be -0)
> > 
> >     floor(-0.4)   = -1 (should be -1)
> >     ceiling(-0.4) = 0 (should be -0)
> >     round(-0.4)   = 0 (should be -0)
> > 
> >     floor(-0.5)   = -1 (should be -1)
> >     ceiling(-0.5) = 0 (should be -0)
> >     round(-0.5)   = 0 (should be -0)
> > 
> >     floor(-0.6)   = -1 (should be -1)
> >     ceiling(-0.6) = 0 (should be -0)
> >     round(-0.6)   = -1 (should be -1)
> [...]
> > Are these indeed bugs?  If so, I'll file an official bug report.
> 
> Yes, they are bugs.
> 
> Please note that the bug report should be filed against libxml,
> not libxslt, as the above functions are part of XPath (which
> resides in libxml.)

Ok, I'll reassign the bug report to the Debian package of libxml2
with a note stating that this is an upstream bug.

Thanks,
Ardo
-- 
Ardo van Rangelrooij
home email: ardo@debian.org
home page:  http://people.debian.org/~ardo
GnuPG fp:   3B 1F 21 72 00 5C 3A 73  7F 72 DF D9 90 78 47 F9



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]