IBM Support

HD96458: 2DL:ROUNDING OFF IS NOT PERFORMED CORRECTLY.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as user error.

Error description

  • Scenario:
    1. Create a CATPart containing the layout of cylinder.
    2. Move to the 2D layout and create a dimension for the
    height of the cylinder with precision of 0.01 and 1.
    Problem:
    When the dimension is created with the precision value of 1
    it is rounded to lower integer (x.5 to x)
    Expected Result:
    The dimension should be rounded to upper integer X+1
    

Local fix

  • empty
    

Problem summary

  • Scenario:
    1. Create a CATPart containing the layout of cylinder.
    2. Move to the 2D layout and create a dimension for the
    height of the cylinder with precision of 0.01 and 1.
    Problem:
    When the dimension is created with the precision value of 1
    it is rounded to lower integer (x.5 to x)
    Expected Result:
    The dimension should be rounded to upper integer X+1
    

Problem conclusion

  • THE PROBLEM HAS BEEN FOUND TO BE ANOTHER SYMPTOM OF THE
    PROBLEM REPORTED IN  APAR HD48866 OR THE ANSWER MADE FOR THIS
    DUPLICATE APAR APPLIES ALSO TO THE CURRENT PROBLEM.
    Additional Closure Information:
    Incident Diagnosis:
    Rounding off is not performed correctly.
    Explanations:
    The dimension shown in this case is actually 34.4999999999864.
    When we are considering the 0.01 precision algorithm will
    consider 2 decimal places and round the dimension to 34.5
    and when precision is 1.0 it will consider all the decimal
    point see that the value is above 34.5000000.... and round it
    up to the nearest integer that is 34.
    We are also attaching the macro so that you can use it to
    check the exact value of dimension as stated above in the SR.
    Open the 2DL of the file create the dimension, run the macro
    and then click on the dimension.
    

Temporary fix

Comments

  •  Incident Diagnosis
    Some dimensions have for real values
    ab.x499999999995 and some other
    ab.x500000000003.
    These little precision problems comes form
    computer calculations. rounded to 10-6 (and up to
    10-2), both those values give ab.x5, but when you
    round them to 10-1, you get ab.x in the first case
    and ab.y, where y=x+1, in the second case.
    .
    Correct Application
    If the user wants to use true dimensions, then the
    geometry should not be designedto 0.5*10-p if
    the dimension precision  wanted is 10-p!
    For example, if the precision is 10-2, and the
    dimension wanted to create is 10.4, do not
    create the geometry to get a CAD dimension to
    10.449xxxxx or 10.35xxxxx what ever are the
    xxxxx digit values.
    If the design has been made deliberately to this
    value, please use fake dimensions.
    Documentation Reference
    Getting Started
    

APAR Information

  • APAR number

    HD96458

  • Reported component name

    CATIA V5 NT>XP

  • Reported component ID

    569151000

  • Reported release

    519

  • Status

    CLOSED USE

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-05-18

  • Closed date

    2011-09-20

  • Last modified date

    2011-09-20

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

Applicable component levels

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSVJ2K","label":"CATIA"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"519","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
20 September 2011