HomeAbout Us A-Z IndexSearch * Contact Us Register LoginPress Shop

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 1202 Details

Help Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges

This page provides all information on Problem Report 1202.


Report 1202 Actions


    Problem Report Number 1202
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Rejected (REJ)
    Problem Resolution ID REJ.X.0404
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published null
    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 CAPIbase/fecvt 4
    Problem Summary PG4U.00063 This was withdrawn because it is a duplicate. Use req.4.U.00203 instead.
    Problem Text
    This was withdrawn because it is a duplicate. Use req.4.U.00203
    instead.

    We believe this is a test suite deficiency. Our implementation
    supports only roud-to-nearest rule, and is rounding correctly.
    For a negative number (such as -12345.987500), we are producing
    the correct results per the round-to-nearest rule.

    The round-to-nearest rule for a negative number algorithm is to:
    1. take absolute value of number,
    2. round next-to-last digit _up_ if last digit it 5-9
    3. apply sign of original number to result

    Or logically:

    if (number < 0)
    if (last digit == 0-4)
    (leave next digit as is)
    else
    (round next digit _down_)
    else
    if (last digit == 0-4)
    (leave next digit as is)
    else
    (round next digit _up_)
    Test Output
    SPEC1170TESTSUITE CASE 4
    The low order digit of the string returned by a call
    to char *ecvt(double value, int ndigit,
    int *decpt, int *sign) shall be rounded.
    TEST: ecvt(0.000000, 1) should return 0
    TEST: ecvt(1290000.000000, 3) should return 129
    TEST: ecvt(1290000.000000, 2) should return 13
    TEST: ecvt(1290000.000000, 1) should return 1
    TEST: ecvt(19999999999.000000, 8) should return 20000000
    TEST: ecvt(19999990999.000000, 8) should return 19999991
    TEST: ecvt(15.499900, 3) should return 155
    TEST: ecvt(-2284.347840, 6) should return 228435
    TEST: ecvt(-38.293900, 7) should return 3829390
    TEST: ecvt(123.450000, 10) should return 1234500000
    TEST: ecvt(-123.450000, 3) should return 123
    TEST: ecvt(12345.987200, 8) should return 12345997
    TEST: ecvt(12345.987300, 8) should return 12345987
    TEST: ecvt(0.123460, 8) should return 12345987
    TEST: ecvt(0.012346, 8) should return 12345988
    TEST: ecvt(-12345.987500, 8) should return 12345987
    ERROR: Low order digit is incorrect, expected 12345987, received 12345988
    FAIL

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    The submitter asks that this request be withdrawn.

    This is a duplicate of req.4.U.00203

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Rejected (REJ)
    Review Conclusion
    This request is refused.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority