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



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.)



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