Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Displaying commas in numerical calculations made via SSI script

Hi...

In my survey I am calculating a final price of a service using SSI script e.g.

 Price $[%Q1 x 1000%]
and the result can be in the tens of thousands. Is it possible to some-how format the answer to include commas. So $10000 becomes $10,000?

If not, how would you tackle it? Could this be better achieved using javascript for example?

Many thanks
asked May 23, 2013 by rapizel Bronze (1,420 points)

1 Answer

0 votes
I would use the FORMATNUMBER function from SSI Script. You can find it in the help file under "Composing Surveys > SSI Script > Functions > Math Functions.
answered May 23, 2013 by lennaert.goris Bronze (655 points)
...