Re: Round up prices

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 31329
interpreted = N
texte = It is rare that you would repetively round each decimal place in turn: 0.555 rounds to 0.56 (two decimals) or 0.6 (one decimal) 0.445 rounds to 0.45 (two decimals) or 0.4 (one decimal) 0.325 rounds to 0.33 (two decimals) or 0.3 (one decimal)You don't perform the round operation at each place. Think of the second example as 45/1000's is < 50/1000's so it rounds to 0.4 instead of 0.5.John PeacockAaron Lynch wrote: > > 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. > > > > if it's .555 I would expext iit to round up to .56 .6 > > if 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 .3 > > But 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 ------------------------------------------------------------- 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)
It is rare that you would repetively round each decimal place in turn: 0.555 rounds to 0.56 (two decimals) or 0.6 (one decimal) 0.445 rounds to 0.45 (two decimals) or 0.4 (one decimal) 0.325 rounds to 0.33 (two decimals) or 0.3 (one decimal)You don't perform the round operation at each place. Think of the second example as 45/1000's is < 50/1000's so it rounds to 0.4 instead of 0.5.John PeacockAaron Lynch wrote: > > 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. > > > > if it's .555 I would expext iit to round up to .56 .6 > > if 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 .3 > > But 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 ------------------------------------------------------------- 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 John Peacock

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:

[WebDNA] trigger won't follow path? maybe (2009) Calculating multiple shipping... (1997) search / summary (2005) Does Flushing the Master Databases Flush Databases from a (2004) $Quit, $CloseDatabase corrections (1997) Multiple fields on 1 input (1997) [WebDNA] [BULK] WebDNA 7 - Bug Reporting (2011) RePost: NAT and the CART (1999) Re(2): NT version and O'reily's WebSite (1997) Answer: WebDelivery downloads alias, not original ? (1997) Date/Time format problems (1997) problems with 2 tags (1997) WebCat2: multiple currency support (1997) This list needs a digest: rant, rave... (1997) Cookies not being set on PC/ Explorer (2000) Searching multiple Databases (1997) Signal Raised (1997) Bugs? What Bugs? was:Spawning Holdup? (2000) can pull down menu do a ONCHANGE= without Java script? (2000) Weird Math and SV (1997)