Re: Roundup

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 36563
interpreted = N
texte = Try this:multiply by ten, then add 0.5, then do a floor, then divide by ten!Ciao,PeterOn Thu, 21 Jun 2001 20:05:04 Will Starck wrote: > No formatting I can think of... > > I'm sure there's a long way to do it, possibly with convertchars and > some > math. Or ask John Peacock ... ;) > > Will > ----- Original Message ----- > From: Nitai @ ComputerOil > To: WebCatalog Talk > Sent: Thursday, June 21, 2001 5:50 PM > Subject: Roundup > > > > Has any Webcater out there worked around rounding up to the .05? > > > > I have some calucations which come out as 65.13. What I need is to > have to > > round up or down. Here in Switzerland we usually dont use the 1 > cent, 2 > > cent, etc. We round everything up or down. > > > > Everything below 5 is rounded down and everything above up. So > 65.13 > should > > acutally show 63.10 and 63.17 should be 63.20. > > > > Trying ceil and floor does not help because it rounds the whole int > and > not > > only the .05 part. Any work arounds? > > > > Sincerely, > > Nitai Aventaggiato > > > > -- > > We make tools to energize your business > > Content Management & eBusiness Systems > > > > ComputerOil GmbH http://computeroil.com > > Hauptstrasse 12 info@computeroil.com > > 8252 Schlatt/Switzerland > > Tel: +41 (0)52 654 15 55 > > > > > > ------------------------------------------------------------- > > 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 > > > Web Archive of this list is at: http://search.smithmicro.com/ > > > ------------------------------------------------------------- > 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 > > Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Roundup (Nitai @ ComputerOil 2001)
  2. Re: Roundup (Peter Werno 2001)
  3. Re: Roundup (Will Starck 2001)
  4. Re: Roundup (Kenneth Grome 2001)
  5. Re: Roundup (Brian Fries 2001)
  6. Roundup (Nitai @ ComputerOil 2001)
  7. Re: Roundup function? (Grant Hulbert 1997)
  8. Roundup function? (w curt eggemeyer 1997)
Try this:multiply by ten, then add 0.5, then do a floor, then divide by ten!Ciao,PeterOn Thu, 21 Jun 2001 20:05:04 Will Starck wrote: > No formatting I can think of... > > I'm sure there's a long way to do it, possibly with convertchars and > some > math. Or ask John Peacock ... ;) > > Will > ----- Original Message ----- > From: Nitai @ ComputerOil > To: WebCatalog Talk > Sent: Thursday, June 21, 2001 5:50 PM > Subject: Roundup > > > > Has any Webcater out there worked around rounding up to the .05? > > > > I have some calucations which come out as 65.13. What I need is to > have to > > round up or down. Here in Switzerland we usually dont use the 1 > cent, 2 > > cent, etc. We round everything up or down. > > > > Everything below 5 is rounded down and everything above up. So > 65.13 > should > > acutally show 63.10 and 63.17 should be 63.20. > > > > Trying ceil and floor does not help because it rounds the whole int > and > not > > only the .05 part. Any work arounds? > > > > Sincerely, > > Nitai Aventaggiato > > > > -- > > We make tools to energize your business > > Content Management & eBusiness Systems > > > > ComputerOil GmbH http://computeroil.com > > Hauptstrasse 12 info@computeroil.com > > 8252 Schlatt/Switzerland > > Tel: +41 (0)52 654 15 55 > > > > > > ------------------------------------------------------------- > > 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 > > > Web Archive of this list is at: http://search.smithmicro.com/ > > > ------------------------------------------------------------- > 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 > > Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Peter Werno

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:

Image maps/Webcat (1997) listfiles to aliased path OSX.2 (2002) [include file=filename.inc&strip=t] (2002) Who's Security? (2000) sort problems....bug or brain fart? (1997) Here's how to kill a Butler Database. (1997) autosensing lanague selection (1997) Followup question re: checksum for credit cards? (1997) emailer error -108 (1997) Help Encrypt/Decrypt eMail (2003) Date Formats (1997) deadlock (2000) Server crash (1997) Search Context: How to set Max=N? (2000) RE: New WebCatalog Version !!! (1997) Size limit for tmpl editor ? (1997) quantity minimum problem (1997) PCS Emailer's role ? (1997) Country & Ship-to address & other fields ? (1997) RE: Can't get appendfile to work (1997)