Alternative to toLocaleString() in ExtendScript?
as far can tell , after many attempts, method doesn't work in es. know of alternative automatically adding commas large numbers?
for it's worth, 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); }
More discussions in After Effects Scripting
adobe
Comments
Post a Comment