Article - CS369912

"Calculated" attribute not working as expected if the "Round()" function is used in Windchill PDMLink

Modified: 25-May-2022   


Applies To

  • Windchill PDMLink 12.0

Description

  • Calculated attribute not working as expected if the Round() function is used
  • Steps:
    1. Create 3 attributes with Real Numbers a,b,c
    2. Create a Calculated attribute named: result with Real number data type and formula: ((round((a+b+c)*10))/10.00)
    3. Provide the below values to the attributes on create page:
      • a = 10.20
      • b = 10.35
      • c = 02.00
      • Value of attribute result will be : 22.5
      • User-added image
    4. Now, Provide the below values and see the result:
      • a = 10.25
      • b = 10.30
      • c = 02.00
      • Value of attribute result will be : 22.6
      • User-added image
    • Although the sum of values in Step 3 and Step 4 is same i.e. 22.55 still the result attribute shows the different values
This is a printer-friendly version of Article 369912 and may be out of date. For the latest version click CS369912