Re: math and european notation
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 16172
interpreted = N
texte = >I found a workaround using nested format:>[format ,2f][math][format f][itemprice][/format]*[quantity][/math][/format]>That works and seems to do some reformatting on the price field during>calculation even with european format in the database.>Does [format f]>eliminate all punctuations and treats the numbers only?Not intentionally, so be careful -- this may be an accidental side-effect.Currently all numbers are expected to be stored in American format in your database, and in fact should not contain commas either. We expect1000.49 -- good1,000.49 -- unknown1.000,49 -- unknownThe upcoming 2.1 release will provide a special [ConvertChars] ability to remove periods and convert commas to periods so that your vendors can type European-style numbers:1.000,49 -> ConvertChars -> 1000.49 (expected WebCat format)Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>I found a workaround using nested format:>[format ,2f]
[math][format f][itemprice][/format]*[quantity][/math][/format]>That works and seems to do some reformatting on the price field during>calculation even with european format in the database.>Does [format f]>eliminate all punctuations and treats the numbers only?Not intentionally, so be careful -- this may be an accidental side-effect.Currently all numbers are expected to be stored in American format in your database, and in fact should not contain commas either. We expect1000.49 -- good1,000.49 -- unknown1.000,49 -- unknownThe upcoming 2.1 release will provide a special
[convertchars] ability to remove periods and convert commas to periods so that your vendors can type European-style numbers:1.000,49 -> ConvertChars -> 1000.49 (expected WebCat format)Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Grant Hulbert
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:
redirect with frames (1997)
Email Newsletters [OT] (2003)
absolute paths for databases? (1997)
carriage returns in data (1997)
WebMerchant and AVS (1998)
test pls delete (2001)
Need help!! on searching in two databases. (1998)
more Dreamweaver Extensions feedback (2000)
Not really WebCat- (1997)
WebCatalog f2 Installation (1997)
[SEARCH] Context for SKU prices not working... (1998)
Random ads (1998)
Problems passing [SKU] with $Replace in 2.0 (1997)
[ShowNext] feature in 2.0 (1997)
Protect (1997)
Maybe minor bug report (1997)
WebDNA Developer Resource Center (2002)
emailer w/F2 (1997)
Country & Ship-to address & other fields ? (1997)
WebCat2b15MacPlugin - showing [math] (1997)