|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1600 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 1600.
Report 1600 Actions
Problem Report Number 1600 Submitter's Classification Specification problem State Resolved Resolution Permanent Interpretation (PIN) Problem Resolution ID PIN.X.0157 Raised 1996-03-13 08:00 Updated 2003-03-13 08:00 Published 1996-03-21 08:00 Product Standard Internationalised System Calls and Libraries Extended (UNIX 95) Certification Program The Open Brand certification program Test Suite VSU version 4.1.0 Test Identification CAPI.os/genuts/ecvt 5 Specification System Interfaces and Libraries Issue 4 Version 2 Location in Spec See Problem Text Problem Summary PIN4U.00023 This test may fail on implementations because the position of the decimal point when value is zero is ambiguous. Problem Text
This test may fail on implementations because the position of the
decimal point when value is zero is ambiguous.
The test suite expects that ecvt(0.000000, 6) will set the radix indicator
to 1. On page 120 of the XPG4 V2 XSH, no mention is made of the required
output for this case, and thus this testcase is expecting non-XPG4 behavior.
This appears to be an oversight by the base working group as mathematicians
say either 1 or 0 is correct.Test Output
TEST CASE: ecvt
TEST PURPOSE #5
A call to char *ecvt(double value, int
ndigit, int *decpt, int *sign) shall store the
position of the radix character relative to the
beginning of the returned string indirectly through
decpt with a positive value meaning to the right of
the returned string and a negative value meaning to
the left of the returned string.
TEST: ecvt(0.000000, 6) should set decpt to 1
ERROR: Position of decimal point is not correct, decpt set to 0
TEST: ecvt(12345.987000, 11) should set decpt to 5
TEST: ecvt(1234.598700, 11) should set decpt to 4
TEST: ecvt(123.459870, 11) should set decpt to 3
TEST: ecvt(12.345987, 11) should set decpt to 2
TEST: ecvt(1.234599, 11) should set decpt to 1
TEST: ecvt(0.123460, 11) should set decpt to 0
TEST: ecvt(0.012346, 11) should set decpt to -1
TEST: ecvt(0.001235, 11) should set decpt to -2
TEST: ecvt(0.000123, 11) should set decpt to -3
TEST: ecvt(0.000012, 11) should set decpt to -4
TEST: ecvt(0.000001, 11) should set decpt to -5
5 FAILReview Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
We agree with the submitter and recommend a permanent interpretation.
In our opinion the base working group should mandate the behavior
expected by the test. We believe this is the output format most
application developers would prefer.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Permanent Interpretation (PIN) Review Conclusion
A Permanent Interpretation is granted.
Problem Reporting System Options:
- View Report 1600
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority