Skip to main content
Inspiring
August 15, 2020
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
August 15, 2020

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
August 15, 2020

Use this as custom format script:

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

Translate
Bernd Alheit
Community Expert
Community Expert
August 15, 2020

Look at the description of AFNumber_Format.

Translate
blazbAuthor
Inspiring
August 15, 2020

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
August 15, 2020

For this you must create your own format script.

Translate