• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 373
  • Last Modified:

How to keep commas in a NumberFormat Function

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
jasch2244
Asked:
jasch2244
  • 2
1 Solution
 
cconstable_workCommented:
Set the mask to "$___,___.__" instead of just $?
0
 
cconstable_workCommented:
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
 
jasch2244Author Commented:
That's a beautiful thing! Thank you :)
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now