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 thesecond example as 45/1000's is < 50/1000's so it rounds to 0.4 insteadof 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:
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 thesecond example as 45/1000's is < 50/1000's so it rounds to 0.4 insteadof 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:
[append] vs. [appendfile] delta + question? (1997)
WebDNA Life Cycle (2007)
Final invoice problems (1998)
Enterprise Server (1998)
Verify entry into a text field (2005)
I need a Smart-quote workaround (1999)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
problems with 2 tags (1997)
WebCat2: multiple currency support (1997)
WebCat as POP mail client? (2002)
Talk List Suggestions (1997)
A quickie question (1997)
View order not right (1997)
Cobalt RaQ Installation (2003)
Very Quiet .... (2004)
[WebDNA] Can webDNA be forced to be able to read ANY file in ANY (2018)
Buying sans cart (1997)
Questions To Answer (1997)
Authenticate (1997)
Help! WebCat2 bug (1997)