Skip to main content
Inspiring
Aug 15, 2020 11:02 AM UTC
Answered

custom format

If I use this code for example AFNumber_Format(2, 0, 0, 0, "$", true);  how can i get currency to show on right side of value? also can it have 2 currency symbol one on the left, and one on the right?

This topic is closed to new replies. Start a new post to keep the conversation going.
Nesa Nurani
Nesa NuraniCorrect answer
Community Expert
Aug 15, 2020 3:08 PM UTC

Use this as custom format script:

event.value = util.printf("$%,0.2f$",event.value);

4 replies

Nesa Nurani
Community Expert
Nesa NuraniCommunity ExpertCorrect answer
Community Expert
Aug 15, 2020 3:08 PM UTC

Use this as custom format script:

event.value = util.printf("$%,0.2f$",event.value);

Translate
Bernd Alheit
Community Expert
Community Expert
Aug 15, 2020 1:27 PM UTC

Look at the description of AFNumber_Format.

Translate
blazbAuthor
Inspiring
Aug 15, 2020 1:53 PM UTC

thx found it how to get it on the right . What about second question to show on both side?

Translate
Bernd Alheit
Community Expert
Community Expert
Aug 15, 2020 2:49 PM UTC

For this you must create your own format script.

Translate