creating % with the calc element

Racmitch

Member
Hi Guys been awhile, I have a question I'm hoping can be answered in this forum, if I need to bump up to the pro forum let me know. I have used the calc element to create different math calculations, but I need to make one now that will show the difference of 2 numbers as a percentage. I do know to have ajax observe the fields to be used. example:
{product_mapping_summary_block___tottime2},
{product_mapping_summary_block___tottime3},
And I have created the code to place into the "calculation" block within the element,
example: return (real)'{product_mapping_summary_block___tottime2_raw}' + (real)'{product_mapping_summary_block___tottime3_raw}' ;

I just don't know what formula to use to make this end up with a percentage difference showing in "total"
Can someone help me please?
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top