Re: Truncated numbers

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 30647
interpreted = N
texte = Thanks Ken -- Stuart TremainDigital Imaging Division The Ad-Libitum Group 48 Victoria Street North Sydney 2060 Australia Phone: +612 9959 5633 Fax: +612 9929 4146email: stuartt@adlib.com.au http://www.adlib.com.auOn Friday, 9 June 1939, Kenneth Grome wrote: >>I have some prices in a db that look like this >>1,234.56 >> >>When I use $[format .2f][Priceone][/format] >>the result gives me $1.23 >> >>The obvious problem is the comma, how can I stop this >happening? > >Strip the commas before you use the format context -- by putting the >[priceone] tag inside a convertchars context that uses a special db >to change commas to nothing. > > >================================ >Kenneth Grome, WebDNA Consultant >808-737-6499 http://webdna.net >================================ > > > >------------------------------------------------------------- >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 > >------------------------------------------------------------- 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 Associated Messages, from the most recent to the oldest:

    
  1. Re: Truncated numbers (Stuart Tremain 2000)
  2. Re: Truncated numbers (jpeacock@univpress.com 2000)
  3. Re: Truncated numbers (Howard Wolosky 2000)
  4. Re: Truncated numbers (Stuart Tremain 2000)
  5. Re: Truncated numbers (Kenneth Grome 2000)
  6. Re: Truncated numbers (Robert Wade 2000)
  7. Truncated numbers (Stuart Tremain 2000)
Thanks Ken -- Stuart TremainDigital Imaging Division The Ad-Libitum Group 48 Victoria Street North Sydney 2060 Australia Phone: +612 9959 5633 Fax: +612 9929 4146email: stuartt@adlib.com.au http://www.adlib.com.auOn Friday, 9 June 1939, Kenneth Grome wrote: >>I have some prices in a db that look like this >>1,234.56 >> >>When I use $[format .2f][Priceone][/format] >>the result gives me $1.23 >> >>The obvious problem is the comma, how can I stop this >happening? > >Strip the commas before you use the format context -- by putting the >[priceone] tag inside a convertchars context that uses a special db >to change commas to nothing. > > >================================ >Kenneth Grome, WebDNA Consultant >808-737-6499 http://webdna.net >================================ > > > >------------------------------------------------------------- >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 > >------------------------------------------------------------- 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 Stuart Tremain

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:

Tax Moratorium Expiring (2001) RE: Can a database get stomped by simultaneous access? (1997) problems with [getcookie] (1999) [shell]? (2000) Redirect and passing more than one variable... (2002) [WaitForFile] wait for open file, not closed file (2001) Duplicate Carts (2000) WebCatalog-NT?'s (1996) [OT] DOD again (2003) Search results templates (1996) Help with UPS Shipping (2006) A little syntax help (1997) RE: E-mailer error codes (1997) Some pointers please (2008) Modifying order output (1997) Server crash (1997) web delivery (1997) WebCatalog can't find database (1997) Notepad problems - SOLVED! (1998) Not really WebCat - need HTML Grider (1997)