Re: Round up prices

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 31326
interpreted = N
texte = on 5/3/00 6:34 AM, Mark Derrick at mark@mcm.co.uk wrote:> I'm still working on this problem, but it seems to be a deeper problem than I > first thought. > > Is it generally thought that it's right to round up when it's .xx5? or could > this be considered a bug? > > I am reluctant to spend time trying to find a workaround for this issue if > it's something that we should expect SM to fix. > > Is anybody else having the same problem, or am I just being weird! :-) > > Thanks. > > Mark. > > On Wednesday, April 26, 2000, Kenneth Grome wrote: >>> I'm having a few problems with the way that WebCatalog is rounding off >>> prices. >>> It's only a problem when the figures end .xx5 (IE: 1291.325). >>> >>> All the programs I've come across (including the one that handles >>> all our sales order processing after it's been passed from >>> WebCatalog - ACI 4D) >>> will round this number UP, but WebCatalog rounds this DOWN. >> >> No options, that's just how it works, but you can get around this >> problem by writing custom webdna code that detects the 5 in the 3rd >> decimal place and deals with it the way you want to deal with it, >> instead of the way webcatalog deals with it. >> >> >> ================================ >> Kenneth Grome, WebDNA Consultant >> 808-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 >> >> > > ------------------------------------------------------------- > 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 > if it's .555 I would expext iit to round up to .56 .6if it's .445 I would expect it to round to .45 and then .5 though this one would likely confuse me because I'd want .44 to round down. if it's .325 I'd expect it to round to .33 and .3But that's just me, and I truly suck at math. -- It is bad luck to fall out of a thirteenth story window on a Friday. ------------------------------------------------------------- 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: Round up prices (Aaron Lynch 2000)
  2. Re: Round up prices (John Peacock 2000)
  3. Re: Round up prices (Aaron Lynch 2000)
  4. Re: Round up prices (John Peacock 2000)
  5. Re: Round up prices (Christer Olsson 2000)
  6. Re: Round up prices (Mark Derrick 2000)
  7. Re: Round up prices (John Peacock 2000)
  8. Re: Round up prices (Christer Olsson 2000)
  9. Re: Round up prices (John Peacock 2000)
  10. Re: Round up prices (John Butler 2000)
  11. Re: Round up prices (Scott Tolley 2000)
  12. Re: Round up prices (Mark Derrick 2000)
  13. Re: Round up prices (Mark Derrick 2000)
  14. Re: Round up prices (Kenneth Grome 2000)
  15. Round up prices (Mark Derrick 2000)
on 5/3/00 6:34 AM, Mark Derrick at mark@mcm.co.uk wrote:> I'm still working on this problem, but it seems to be a deeper problem than I > first thought. > > Is it generally thought that it's right to round up when it's .xx5? or could > this be considered a bug? > > I am reluctant to spend time trying to find a workaround for this issue if > it's something that we should expect SM to fix. > > Is anybody else having the same problem, or am I just being weird! :-) > > Thanks. > > Mark. > > On Wednesday, April 26, 2000, Kenneth Grome wrote: >>> I'm having a few problems with the way that WebCatalog is rounding off >>> prices. >>> It's only a problem when the figures end .xx5 (IE: 1291.325). >>> >>> All the programs I've come across (including the one that handles >>> all our sales order processing after it's been passed from >>> WebCatalog - ACI 4D) >>> will round this number UP, but WebCatalog rounds this DOWN. >> >> No options, that's just how it works, but you can get around this >> problem by writing custom webdna code that detects the 5 in the 3rd >> decimal place and deals with it the way you want to deal with it, >> instead of the way webcatalog deals with it. >> >> >> ================================ >> Kenneth Grome, WebDNA Consultant >> 808-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 >> >> > > ------------------------------------------------------------- > 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 > if it's .555 I would expext iit to round up to .56 .6if it's .445 I would expect it to round to .45 and then .5 though this one would likely confuse me because I'd want .44 to round down. if it's .325 I'd expect it to round to .33 and .3But that's just me, and I truly suck at math. -- It is bad luck to fall out of a thirteenth story window on a Friday. ------------------------------------------------------------- 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 Aaron Lynch

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:

BGcolor (1997) Help! WebCat install problems... (2000) Fwd: Problems with Webcatalog Plug-in (1997) Bug or syntax error on my part? (1997) [BULK] [WebDNA] New Webdna framework ! ... (addresses some initial concerns... coming into the design of a large project) (2012) Requiring that certain fields be completed (1997) Help formatting search results w/ table (1997) LetterRip and WebCat & more (1998) About the Allow 'Absolute Path' Prefix (2002) CAPTCHA system in webDNA (2005) multi-paragraph fields (1997) Merchant and WebCat 3.0 (1998) off topic - dna snipets (1997) Calculating Shipping (1997) [WebDNA] Formatting text (2011) fieldnamesdir=ra equivalent for [sql] (2002) Running 2 two WebCatalog.acgi's (1996) WebCat2 - Getting to the browser's username/password data (1997) Showing unopened cart (1997) Email Obfuscation Function (2008)