Formatting Currency | Community
Skip to main content
Rob_Stretch1
New Participant
February 11, 2016
Solved

Formatting Currency

  • February 11, 2016
  • 1 reply
  • 1949 views

I have a currency type field that I would like to format. Right now, an example of the output would be 10000. I just want to add the commas to make the output 10,000.

$10,000 would work as well, or I could just add the dollar sign later.

Does anyone know how to do this using a script token?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by

Hi Rob,

Try,

$number.currency($myNumber)

or try

#set($String = "abc")
$String
.format("%.2f", $val
)

Or NumberTool might be useful too

$numberTool.format("#0.00", $val)

Hope this helps

Rajesh

1 reply

Accepted solution
February 14, 2016

Hi Rob,

Try,

$number.currency($myNumber)

or try

#set($String = "abc")
$String
.format("%.2f", $val
)

Or NumberTool might be useful too

$numberTool.format("#0.00", $val)

Hope this helps

Rajesh