Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Adding commas to numbers in expression counter

New Here ,
Mar 09, 2022 Mar 09, 2022

Hi

I know this question has been answered a few times already but I'm struggling to figure out what part of the expressiojn I need to add and where it needs to be added in order for me to get comma's. I've attached an image of what I have of the expression so far, can anyone help me?

Screenshot (134).png

TOPICS
Expressions
143
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 09, 2022 Mar 09, 2022

Something like this perhaps:

 

mVal=thisComp.layer("XYZ").effect("Slider")("Slider");

mString=Math.round(mVal).toString();

mPre=mString.substring(1,2);

mPost=mString.substring(mString.length,-3);

 

mPre()+","+mPost

 

Mylenium

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 09, 2022 Mar 09, 2022
LATEST
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines