Using below code to convert a number into comma se...
# suitescript
r
Using below code to convert a number into comma seprated, but its adding currency symbol at the front, how can I stop it from adding it.
Copy code
var myFormat = format.getCurrencyFormatter({currency: "USD"});
var newCur = myFormat.format({number: parseFloat(myNumber)});
For example: 3938.76 is converting to $3,938.76 While I only want it to look like this 3,938.76
s
I suspect the problem is that you are using the CurrencyFormatter instead of the NumberFormatter. Perhaps try using
format.getNumberFormatter()
instead: https://suiteanswers.custhelp.com/app/answers/detail/a_id/87238