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:
- Create 3 attributes with Real Numbers a,b,c
- Create a Calculated attribute named: result with Real number data type and formula: ((round((a+b+c)*10))/10.00)
- 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

- 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

- 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