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

Popular posts from this blog

Illustrator CS6 Ocurrío un error E/S en el archivo.

Why is os_ViewContainer running?

Animate - problem with duplicating scripts after loop