Re: inconsistent webcat calculation?

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 15008
interpreted = N
texte = >Just out of curiosity is there something bogus about the former way I did it?No, but you didn't say what was wrong either. I'll assume the numbers are slightly different, and that you were getting rounding errors based on your .2f formatting.Inside a math context, all numbers are computed out to a zillion digits. If you force the numbers down to fewer digits, they get rounded up or down.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: inconsistent webcat calculation? (Grant Hulbert 1997)
  2. inconsistent webcat calculation? (w curt eggemeyer 1997)
>Just out of curiosity is there something bogus about the former way I did it?No, but you didn't say what was wrong either. I'll assume the numbers are slightly different, and that you were getting rounding errors based on your .2f formatting.Inside a math context, all numbers are computed out to a zillion digits. If you force the numbers down to fewer digits, they get rounded up or down.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:

Re:no [search] with NT (1997) [WebDNA] why is this cookie being set to expire at end of browser session? (2009) Universal root for WC errors? (1997) Items in cart (2000) Getting Total Quantity (1997) WebDNA Codes in Secure Mode (1997) Where is f2? (1997) Webcatalog-firesite and [referrer] tag (1997) WCS Newbie question (1997) Rhapsody? (1997) Problems passing [SKU] with $Replace in 2.0 (1997) Trouble with formula.db + more explanation (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) creator code (1997) database confused (2000) [WebDNA] [table] and COMMA in a Field (2015) ISAPI WC6a and Windows 2003 Web Edition (2006) [writefile] (1997) Forms Search Questions (1997) Simple way to create unique SKU (1997)