Re: Roundup

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 36562
interpreted = N
texte = 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/ 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)
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/ Will Starck

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:

WC Database Format (1997) GuestBook example (1997) catagories (1997) WC2.0 Memory Requirements (1997) [LOOKUP] (1997) REPLACE problem (2000) [WebDNA] WebDNA licenses discount from 12/23 to 12/31 (2011) WebCatalog for guestbook ? (1997) emailer (1997) includes and cart numbers (1997) Frames and WebCat (1997) Client-side Image Maps and WebCat? (1998) searching multiple databases (1997) encryption madness (2003) searchable list archive (1997) NetSplat and WebCat2 (1997) Webcat Manual and TeaRoom Examples Uses Different Examples. (1997) [WebDNA] [MATH] & formatting (2015) Too Much Info (1998) [shownext] and descending order (1997)