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 2624 - Wrong expected result for op-divide-dayTimeDuration-by-dTD-1
Summary: Wrong expected result for op-divide-dayTimeDuration-by-dTD-1
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:
: 2637 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-12-30 19:41 UTC by Jerome Simeon
Modified: 2006-01-06 13:37 UTC (History)
1 user (show)

See Also:


Attachments

Description Jerome Simeon 2005-12-30 19:41:50 UTC
op-divide-dayTimeDuration-by-dTD-1
  The expected result seems wrong to me. The test is:
  fn:round-half-to-even(1.437834967320261438(xdt:dayTimeDuration("P2DT53M11S")
div xdt:dayTimeDuration("P1DT10H")),15)

  the value of xdt:dayTimeDuration("P2DT53M11S") is 175991 seconds
  the value of xdt:dayTimeDuration("P1DT10H")    is 122400 seconds

  175991 div 122400 is 1.437834967320261438

  fn:round-half-to-even(1.437834967320261438) is 1.437834967320261
  instead of the expected value: 1.4378349673202615
Comment 1 Jerome Simeon 2005-12-30 19:42:21 UTC
obviously meant:

  fn:round-half-to-even(1.437834967320261438, 15) is 1.437834967320261
  instead of the expected value: 1.4378349673202615

- Jerome
Comment 2 Andrew Eisenberg 2006-01-05 18:31:30 UTC
*** Bug 2637 has been marked as a duplicate of this bug. ***
Comment 3 Carmelo Montanez 2006-01-05 19:14:48 UTC
Jerome:

Correct.  New results re-generated and submitted.  Please close the bug
if in agreement.

Thanks,
Carmelo