Re: [format] question

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 30970
interpreted = N
texte = You cannot include commas in anything you want to ever treat as a number. 44,000.00 is a string, not a number, and when WebCat tries to convert that to a number, it uses the comma as the decimal seperator (since as many countries do that as use the period). Take the commas out of your data and you will be fine.John Peacock____________________Reply Separator____________________ Subject: [format] question Author: (WebCatalog Talk) Date: 4/27/2000 1:22 PMIf I have this in a template:[format 8.2f][price][/format]Where the value of [price] = 44,000.00 it shows up as: 44.00How do I fix this, or can't I?Thanks Charles ------------------------------------------------------------- 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: [format] question (jpeacock@univpress.com 2000)
You cannot include commas in anything you want to ever treat as a number. 44,000.00 is a string, not a number, and when WebCat tries to convert that to a number, it uses the comma as the decimal seperator (since as many countries do that as use the period). Take the commas out of your data and you will be fine.John Peacock____________________Reply Separator____________________ Subject: [format] question Author: (WebCatalog Talk) Date: 4/27/2000 1:22 PMIf I have this in a template:[format 8.2f][price][/format]Where the value of [price] = 44,000.00 it shows up as: 44.00How do I fix this, or can't I?Thanks Charles ------------------------------------------------------------- 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 jpeacock@univpress.com

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:

Extra equals signs with IE? (More debugging questions...) (1997) autosensing lanague selection (1997) select multiple 2 more cents (1997) [WebDNA] Issue with including functions (2011) Nested tags count question (1997) what the... (2004) For those of you not on the WebCatalog Beta... (1997) Orders.db problem (2003) Fun with dates (1997) duplicate items in cart (1998) Re:Adding non-SKUs to cart (1998) Emailer (WebCat2) (1997) [convertchars] on potential malicious input even in a link? (2000) Protect vs Authenicate (1997) proper username/password *w/out* the authenticate dialog. (2000) Fun with dates (1997) Large sites (2003) 2.0Beta Command Ref (can't find this instruction) (1997) SMSI FTP - calander system THANKS! (2002) View order not right (1997)