Notifications
Clear all
Topic starter
Hi CHUG,
I need some help with a calculation. The below calculates the total of the 3 questions. However I need to take that number and divide it by 10 for the total. Any suggestions on how to do that would be greatly appreciated.
{OBSNOW("WISC CARD SC",str(val(DOCUMENT.WHAT_NUMBER_1) + val(DOCUMENT.WHAT_NUMBER_2) + val(DOCUMENT.WHAT_NUMBER_3))) }
Thanks
Brian
Posted : August 6, 2018 5:16 am
The syntax is div([number],10), so try
{OBSNOW(“WISC CARD SC”,str(div(val(DOCUMENT.WHAT_NUMBER_1) + val(DOCUMENT.WHAT_NUMBER_2) + val(DOCUMENT.WHAT_NUMBER_3),10))) }
Posted : August 6, 2018 5:31 am
Topic starter
Thank you very much Michael.
Posted : August 6, 2018 5:50 am