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

John Fleck wrote:

> Before we use up precious bandwidth on the arcane question of zero and
> negative zero, no less an authority than my daughter, Nora, points out
> that the notion of negative zero is silly. However, the folks who wrote
> the XPATH specification did not have the wisdom to consult Nora, so the
> specification includes negative zero.

The expression 1.0/round(-0.1) should result in negative infinity,
but will result in positive infinity without a negative zero. So,
the result is infinitely off the mark.

I bet Nora didn't think of that.

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