Skip to main content
Inspiring
August 15, 2020
Answered

custom format

  • August 15, 2020
  • 2 replies
  • 729 views

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 has been closed for replies.
Correct answer Nesa Nurani

Use this as custom format script:

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

2 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);

Bernd Alheit
Community Expert
Community Expert
August 15, 2020

Look at the description of AFNumber_Format.

blazbAuthor
Inspiring
August 15, 2020

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

Bernd Alheit
Community Expert
Community Expert
August 15, 2020

For this you must create your own format script.