Project

Profile

Help

Revision 3296f227

Added by Michael Kay over 11 years ago

Fix bug 3021024 round-half-to-even() producing negative zero

View differences:

latest9.2/hej/net/sf/saxon/value/DoubleValue.java
332 332

  
333 333
        d /= factor;
334 334
        if (value < 0) {
335
            d = 0.0 -d;
335
            d = -d;
336 336
        }
337 337
        return new DoubleValue(d);
338 338

  

Also available in: Unified diff