Re: How to add commas to number displays

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59368
interpreted = N
texte = Nah, just: Price: $[Format thousands .2f]2865316.11[/format] Gary At 04:09 PM 9/14/2004, you wrote: >Ok, so the data is coming from the .db as 2865316.11, and I need to >display it as $2,865,316.11 > >Do I disassemble the data with [countchars], then recompile and add commas >after every 3 places starting from the end (the decimal) or something >along those lines? Anybody got a more efficient way? My brain hurts today. >Thanks in advance. >-Dan ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: How to add commas to number displays ( "Dan Strong" 2004)
  2. Re: How to add commas to number displays ( Gary Krockover 2004)
  3. Re: How to add commas to number displays ( "Timothy Taylor" 2004)
  4. How to add commas to number displays ( "Dan Strong" 2004)
Nah, just: Price: $[Format thousands .2f]2865316.11[/format] Gary At 04:09 PM 9/14/2004, you wrote: >Ok, so the data is coming from the .db as 2865316.11, and I need to >display it as $2,865,316.11 > >Do I disassemble the data with [countchars], then recompile and add commas >after every 3 places starting from the end (the decimal) or something >along those lines? Anybody got a more efficient way? My brain hurts today. >Thanks in advance. >-Dan ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Gary Krockover

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCat2 several catalogs? (1997) SetHeader (1997) no time stamp & different times from emailer (1998) WebDNA won't start on Apache/iTools7 (2003) problems with 2 tags shakur (1997) writing db to disk (1997) Updating Prices in Online Database (1999) Has this happened to you? (was:Emailer Chokes on bad address) (1997) Credit Card not accepted (1998) Search results templates (1996) Duplicate Cart ID (2001) Extended [ConvertChars] (1997) [createfolder] & [deletefolder] (1997) Nested search (1997) Stumped (1999) Problems with SELECT MULTIPLE (1999) New index for docs (1997) [Reload mydata.db] (1998) Problems reading files created by WC (1997) [WebDNA] encoding with webdna/JS, in context of various file encodings/charsets (2010)