image of many numbers floating before an opening bank vault

Easily Format Big Numbers and Currency in After Effects

A quick expression to automatically add separators, decimals and currency symbols when using a text layer.

I have seen this problem raised a lot on forums, namely how do you get the Expressions code or rather ExtendScript / JavaScript to automatically add thousands separators to numbers. And how can you have the same number displayed with different currencies?

In the past I might have suggested replace(), split(), join() functions, but they are always a bit awkward to convert, but they are no good when splitting to begin with. But there is a simple function, built into JavaScript that After Effects can also use and it makes the whole thing simple:

Intl.NumberFormat().format()

With just a few options, you can easily format numbers according to any locale, making your project cleaner, smarter, and more professional.

Some contents or functionalities here are not available due to your cookie preferences!

This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

Can’t see this video? Click here! If you are in Safari, hover over “Safari” in your menu, click “settings for creativecow.net” and toggle the “Auto-Play” to “Allow All Auto-Play”.


3D Model Not Showing in After Effects? Fix It Fast with These Tips!
Imported a 3D model into After Effects, but all you see are …
Lock Layer Position with Expressions – Stop Accidental Moves!
Tired of accidentally dragging your layers in After Effects when all you …

Enjoying the news? Sign up for the Creative COW Newsletter!

Sign up for the Creative COW newsletter and get weekly updates on industry news, forum highlights, jobs, inspirational tutorials, tips, burning questions, and more! Receive bulletins from the largest, longest-running community dedicated to supporting professionals working in film, video, and audio.

Enter your email address, and your first and last name below!

Sign up:

* indicates required

Responses

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy