Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes



One answer

Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,132

Question asked: Jun 13 '14, 4:50 p.m.

Question was seen: 4,135 times

Last updated: Jun 14 '14, 1:26 a.m.

Confirmation Cancel Confirm