Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marco-van-zomeren/17605e1324d1a39d99f33d0d3f20389d to your computer and use it in GitHub Desktop.
Save marco-van-zomeren/17605e1324d1a39d99f33d0d3f20389d to your computer and use it in GitHub Desktop.
effect("Slider Control")("Slider").value.toFixed(0)
or
num = value;
function addCommas(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}
addCommas(num)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment