It's all about the answers!

Ask a question

Decimals missing when using calculated values for attributes in RTC


KB 20 (123) | asked Jun 13 '14, 4:50 p.m.

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



permanent link
Don Yang (7.7k21109138) | answered Jun 14 '14, 1:26 a.m.
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


Register or to post 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.