Configures number formatting. Allows to specify number of decimals, decimal point and thousands separators with the single format pattern.
nullnumber.setTextFormat(pattern);
pattern (string) - text format
var number = new AW.Formats.Number;
number.setTextFormat("USD #,###.##");
setTextFormat()
method requires the decimal separator in the formatting pattern so if you need zero decimals - use #.
or #,###.
(dot at the end).