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 -- good 1,000.49 -- unknown 1.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 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: math and european notation (Grant Hulbert 1998)
  2. math and european notation (Peter Ostry 1998)
>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 -- good 1,000.49 -- unknown 1.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 | Typhoon 619/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:

[shownext max=?] armed (1997) User Authentication (2003) RedHat Linux glibc version 2.1.2 or higher required (2000) Line Endings (2007) webcat2b12 CGI -- Date comparisons (1997) serial number dishing (1997) [Announce]: Web server security and password protection (1997) en/decrypt problem (1999) includes and cart numbers (1997) How To Install (2003) Progress !! WAS: Trouble with formula.db (1997) Client-side Image Maps and WebCat? (1998) Web*3 virtual hosting Webcatalog problem (1998) international time (1997) Anyone have a multi-level threaded forum? (2003) Sort Order on a page search (1997) listfiles shows invisible files ... (1999) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) Trouble with formula.db (1997)