It is quite common that you need to store data in one format and display it in another. This is where data formatting classes may help.
First you need to create an instance of the formatting object.
var format = new Active.Formats.Number;
Then configure it - set proper format patterns.
format.setTextFormat("USD #,###.###");
Now you can call one of the transformation methods.
var text = format.dataToText(data);
Example: