Round to the nearest half!

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 69784
interpreted = N
texte = Hello, I am trying to round to the nearest .5 increment and my code so far is too long winded. Here is your mission should you choose to accept it: Round to the nearest half.. so: 1.6543 Should return as 1.5 If the number is absolutely between a half increment.. such as in: 1.75, it should round up (becoming 2 in this case). Thanks, Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Desktop Publishing, Print Consulting, Labels -> <-Glass Products, off-hand Classes/studio rental-> PH:>(608) 770-3822 TALK:>http://artglass-forum.com WEB:> http://www.euca.us & http://www.egg.bz =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Round to the nearest half! ( Donovan Brooke 2008)
  2. Re: Round to the nearest half! ( Christer Olsson 2008)
  3. Re: Round to the nearest half! ( Matthew A Perosi 2008)
  4. Re: Round to the nearest half! ( Donovan Brooke 2008)
  5. Re: Round to the nearest half! ( Matthew A Perosi 2008)
  6. Round to the nearest half! ( Donovan Brooke 2008)
Hello, I am trying to round to the nearest .5 increment and my code so far is too long winded. Here is your mission should you choose to accept it: Round to the nearest half.. so: 1.6543 Should return as 1.5 If the number is absolutely between a half increment.. such as in: 1.75, it should round up (becoming 2 in this case). Thanks, Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Desktop Publishing, Print Consulting, Labels -> <-Glass Products, off-hand Classes/studio rental-> PH:>(608) 770-3822 TALK:>http://artglass-forum.com WEB:> http://www.euca.us & http://www.egg.bz =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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://webdna.smithmicro.com/ Donovan Brooke

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:

newbie question about zip code search (2003) Bad cookie (1998) WebCatalog2 Feature Feedback (1996) Order not created error (never mind) (1997) searching multiple databases (1997) encryption in browser? (1998) [Sum] function? (1997) webcat NT (1998) Search multiple fields (1997) ExclusiveLock (2000) Simple Database close connection (2001) wild question (1998) RE: Cart Template (1997) WebCat2 beta 11 - new prefs ... (1997) OT: recover corrupted data (2003) Validation (2000) WebCatalog on Solaris, installation problems (2000) US Postal Service API (2007) [Cart] ... (1997) PIXO support (1997)