Decimals missing when using calculated values for attributes in RTC
I am working on automating a calculated value (Final Average) in RTC -- the whole number calculations are working fine, but when the average is a decimal, the answer only comes out as a whole number and does not display all the decimal places. So I am basically missing the actual answer. I am doing this utilizing javascript. Can anyone tell me how I can modify the javascript to display the entire answer -- whether it is a whole number or a decimal number? Are there any settings to be changed in RTC for the attributes or there are certain types(decimal, long, small string, etc.) of attributes that can show the entire decimal value? Thank you for your help in advance. |
One answer
if you are with RTC401 or later, you may want to use decimal type:
https://jazz.net/wiki/bin/view/Main/AttributeCustomization#API_for_Javascript and referring to the sample javascript on how to declare/covert the variable: https://jazz.net/wiki/bin/view/Main/AttributeCustomizationExamples#Compare_decimal_attributes_in_pr |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.