This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Expected results for casthcds10: true Actual results: false The test produces true if xs:double(xs:float('1267.43233E12')) eq xs:double('1267.43233E12') But there is no intrinsic reason to believe that this should be true. Intuitively, converting a string to a float loses precision, which cannot be regained when the float is converted to a double. A more reliable test might be xs:float((($input-context1/atomic:root/atomic:float) cast as xs:double)) eq xs:float(1267.43233E12)
Michael: Your suggestion seems quite reasonable and given the sources/time constraints, I will follow up on it. Changed as suggested. I am not sure, but other tests may benefit from this same approach. Thanks, Carmelo