This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
I'm seeing slightly different results for some tan test cases: - math-tan-006 math:tan(math:pi() div 4) actual: 1 expected: 0.9999999999999999 excel: 1 - math-tan-007 math:tan(-math:pi() div 4) actual: -1 expected: -0.9999999999999999 excel: -1
I would like to ask Mike to comment on this bug. The bug 15233 may be related. Specifically what the IEEE spec states on the possible values of pi.
I am inclined to mark this bug as resolved because is has been resolved in bug 15233. *** This bug has been marked as a duplicate of bug 15233 ***
Bug #15233 changed both the queries of test cases math-tan-006 and math-tan-007. It changed the results to 0.9999999999999999 and -0.9999999999999999, respectively. I don't believe that it addresses whether 1 and -1 should be accepted as well.
I have changed these two tests to allow some imprecision in the results in the same way as other similar tests.