Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library > Formatting Text

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 23rd, 2012, 08:31 AM
-Lisa- -Lisa- is offline
Senior Contributor
 
Join Date: Sep 2008
Location: Long Island, NY
Posts: 190
Default Adding commas to numbers

Does anyone have a rule that will add a comma to a field that contains numbers? For instance, the file in my data will have a number such as 7200. I need it to compose as 7,200.

Thanks!
Reply With Quote
  #2  
Old February 23rd, 2012, 11:44 AM
scubajbc scubajbc is offline
Junior Community Member
 
Join Date: Sep 2008
Posts: 32
Default Re: Adding commas to numbers

return FormatNumber("#,###", Field("myfield"));
Reply With Quote
  #3  
Old February 23rd, 2012, 12:39 PM
-Lisa- -Lisa- is offline
Senior Contributor
 
Join Date: Sep 2008
Location: Long Island, NY
Posts: 190
Default Re: Adding commas to numbers

Thank you! I tried that but it wasn't working for me so I thought maybe something changed. I'll re-check that I have everything correct.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:51 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.