This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2594 - Infinite results for round-half-to-evendbl1args-1/3
Summary: Infinite results for round-half-to-evendbl1args-1/3
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.8.2
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Carmelo Montanez
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-13 20:59 UTC by Jerome Simeon
Modified: 2005-12-19 17:07 UTC (History)
0 users

See Also:


Attachments

Description Jerome Simeon 2005-12-13 20:59:17 UTC
fn-round-half-to-evendbl1args-1
fn-round-half-to-evendbl1args-3
  Shouldn't the result be:
   -1.7976931348623157E308
  and
    1.7976931348623157E308
  respectively?

  instead of -INF and INF

- Jerome
Comment 1 Carmelo Montanez 2005-12-15 22:07:58 UTC
Jerome:

As per section 6.2 of the F&O specs, looks as though both results are 
correct.  I am looking at 

"For xs:float and xs:double operations, overflow behavior ·must· be conformant 
with [IEEE 754-1985]. This specification allows the following options:

Raising an error [err:FOAR0002] via an overflow trap.
Returning INF or -INF.
Returning the largest (positive or negative) non-infinite number."

I will change the test entry to account for that.  Please comment if not in 
agreement.

Thanks,
carmelo

Comment 2 Carmelo Montanez 2005-12-16 15:20:54 UTC
Jerome:

oops, but this is not an overflow situation, therefore the results should be 
as you suggested.

Thanks,
Carmelo
Comment 3 Carmelo Montanez 2005-12-16 19:15:52 UTC
Fixed tests.  Submitted new results as suggested.  Please close the bug if in 
agreement.

Thanks,
Carmelo