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 andmy code so far is too long winded. Here is your missionshould you choose to accept it:Round to the nearest half.. so:1.6543Should return as 1.5If the number is absolutely between a half increment.. suchas 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:
Hello,I am trying to round to the nearest .5 increment andmy code so far is too long winded. Here is your missionshould you choose to accept it:Round to the nearest half.. so:1.6543Should return as 1.5If the number is absolutely between a half increment.. suchas 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:
WebCatalog for Postcards ? (1997)
POP Mail Server Reseting (1998)
Nutscrape Doesn't Render Right (2002)
virtual virtual hosted store.... (1998)
Clean Code: Rules for inserting keyboard returns? (1997)
how would you trigger something to happen once a week - every (2001)
UCE: SetHeader not Working (2006)
PCS Frames (1997)
Textarea Breaks (2000)
Bug in WebCat, (2000)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
[searchString] (1997)
creates folders with AS (1997)
WebDelivery downloads alias, not original ? (1997)
Anyone awake? Newby moves deeper! Sitesearch & (2000)
emailer (1997)
WebCat2b13MacPlugIn - More limits on [include] (1997)
[WebDNA] What file needs to be edited in apache to server html (2008)
WC2/Mac -- Forms not submitting correctly with Mac browsers (1997)
PLEASE REMOVE MY EMAIL ADDRESS (1997)