Re: Truncated numbers
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 30646
interpreted = N
texte = >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 Consultant808-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
Associated Messages, from the most recent to the oldest:
>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 Consultant808-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
Kenneth Grome
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: multiple currency support (1997)
Sort Order on a page search (1997)
shipcost (1997)
Re:WebCatalog f2 Installation (1997)
Almost a there but..bye bye NetCloak (1997)
[ReturnRaw] and hiding FORM data (2003)
Parse question (2005)
Weird problems with [SHOWIF]s (1997)
database with 10,000+ web pages stored in it? (2000)
invoice.tpl (1998)
3.08 has trouble keeping the serial # ?? (2000)
graphics server, SSL, Netscape 4.0 (off topic) (1998)
Problem 2 of 2 (was: Shipping Confusion) (2000)
Re1000001: Setting up shop (1997)
[Summary] re: Emailer setup (1997)
grep twice or a better way.... (2007)
Public beta 6 for WebCatalog 4.0 is now available (2000)
Can't use old cart file (was One more try) (1997)
problem serving foreign languages text (1997)
Server Freeze (1998)