Not sure if it will solve your problem but I once had to do some computations and concatenations of the results in on string. I used dynamic variables to accomplish this. Details here ->
Dynamic Variables.
Also Purecloud uses Javascript's MathJS library whose documentation is here -->
MathJS DocumentationMay be a combination of Javascript's text manipulation techniques (
Text Manipulation) , MathJS parsing and Dynamic Variables do the trick for you.
------------------------------
Cheers,
Sajid Abbas Malek
Al-Futtaim Technologies - Dubai
------------------------------