Re: Round up prices
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 31301
interpreted = N
texte = This was discussed in another forum not too long ago, and I seem to recall that there was at least 1 scandanavian country that rounded 5 down for financial purposes only. I agree with you, but don't make assumptions about other people's rounding. That is one reason why thePOSIX Locale settings for currency settings are a black art; it wouldbe nice if WebCat supported that. I have written Math::Currency, a Perlmodule that attempts to play nice where ever you happen to be located.John PeacockScott Tolley wrote:> > I agree...> % is the number to start rounding upwards, as 0 thru 4 are the first 5> numbers, 5 thru 9 are the second 5 numbers in base 10. (decimal)> > Scott.> > > From: John Butler
> > Reply-To: (WebCatalog Talk)> > Date: Wed, 03 May 2000 11:22:22> > To: (WebCatalog Talk)> > Subject: Re: Round up prices> >> >> >> > Mark Derrick 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?> >> > if you're asking what is appropriate in proper math/science when trying to> > reduce the number of significant figures, then my> > understanding is to round up starting with 5.> > I.e. Yes.> >> > -John> >> >> >> > -------------------------------------------------------------> > 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 -------------------------------------------------------------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:
This was discussed in another forum not too long ago, and I seem to recall that there was at least 1 scandanavian country that rounded 5 down for financial purposes only. I agree with you, but don't make assumptions about other people's rounding. That is one reason why thePOSIX Locale settings for currency settings are a black art; it wouldbe nice if WebCat supported that. I have written Math::Currency, a Perlmodule that attempts to play nice where ever you happen to be located.John PeacockScott Tolley wrote:> > I agree...> % is the number to start rounding upwards, as 0 thru 4 are the first 5> numbers, 5 thru 9 are the second 5 numbers in base 10. (decimal)> > Scott.> > > From: John Butler > > Reply-To: (WebCatalog Talk)> > Date: Wed, 03 May 2000 11:22:22> > To: (WebCatalog Talk)> > Subject: Re: Round up prices> >> >> >> > Mark Derrick 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?> >> > if you're asking what is appropriate in proper math/science when trying to> > reduce the number of significant figures, then my> > understanding is to round up starting with 5.> > I.e. Yes.> >> > -John> >> >> >> > -------------------------------------------------------------> > 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 -------------------------------------------------------------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:
[ShowNext] feature in 2.0 (1997)
Date math format (1998)
WebDNA and SQL (2003)
Help! WebCat2 bug (Ben's input) (1997)
[ShowIf] if the varieable exists (1998)
[WebDNA] sem_open bugfix for os x version 6.2 (2012)
[searchString] (1997)
List Name Change Update (2002)
Showif Context combined with Search (1997)
Welcome! (2000)
Online reference (1997)
Multiple 'Users.db' files not possible (1997)
Passwords, Subscription, DBs, oh my! (2000)
Quick ShowIf question (1997)
Getting total number of items ordered (1997)
How did *you* learn Web Catalog? (2000)
Re:listfiles-looking for slick solution (1997)
PCS Frames (1997)
searchable list archive (1997)
Multihoming and webcat (1998)