Copy link to clipboard
Copied
As far as I can tell and after many attempts, this method doesn't work in ES. Does anyone know of an alternative for automatically adding commas to large numbers?
Copy link to clipboard
Copied
for what it's worth, this is my current, hacky workaround:
var data = {
number: 12345
}
num = data.number.toString();
if (num.length > 3){
data.number = num.substring(0, num.length-3) + "," + num.substring(num.length-3);
}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now