Solved

How to keep commas in a NumberFormat Function

Posted on 2010-09-12
3
365 Views
Last Modified: 2013-12-24
I previously asked a question regarding Number Formating with Coldfusion. How would you maintain commas in coldfusions NumberFormat function. Example $200,000.23 NumberFormat("200000.23","$")
0
Comment
Question by:jasch2244
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
cconstable_work earned 500 total points
ID: 33659446
Set the mask to "$___,___.__" instead of just $?
0
 
LVL 3

Expert Comment

by:cconstable_work
ID: 33659456
Just to add to that basically you want to use the "," character in the mask. you could also use "$," as the mask for any length number and it will just add a "," character every 3 digits.
0
 
LVL 1

Author Closing Comment

by:jasch2244
ID: 33659488
That's a beautiful thing! Thank you :)
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now