Have an idea?

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

Converting a decimal into a dollar amount.

I have a pass in variable set to decimal that has a value of 599.9. I need to show this as a currency of 599.90. Is there any easy way of doing this?
asked Jul 10, 2015 by ChrisD

1 Answer

0 votes
You can format the number using the FORMATNUMBER() function in SSI Script, see http://www.sawtoothsoftware.com/help/issues/ssiweb/online_help/index.html?mathfunctions.htm

It should look something like this in the study:
[%FORMATNUMBER(PassInName,",",".",2)%]
answered Jul 10, 2015 by Kenneth Fairchild Bronze Sawtooth Software, Inc. (3,295 points)
...