Re: Round to the nearest half!

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 69786
interpreted = N
texte = Matthew A Perosi wrote: > How many steps do you have? > y = floor(x/.5) > z = (y)(.5) > r = x - z > if r > .24 then y = y + 1 > multiply y*.5 again for the final answer > > [math]x=1.6543[/math] > [math]y=floor([x]/.5)[/math] > [math]z=[y]*.5[/math] > [math]r=[x]-[z][/math] > [showif [r]>.24] > [math]y=[y]+1[/math] > [/showif] > [math]z=[y]*.5[/math] > > z is then your answer. > > > Matthew A Perosi > Psi Prime, Inc. > http://www.psiprime.com > 323 Union Blvd. > Totowa, NJ 07512 > P: 973.413.8210 > F: 973.413.8217 Thanks Matthew, that looks better than mine.. :-) http://www.euca.us/admin/tests/math_roundtohalf.html 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)
Matthew A Perosi wrote: > How many steps do you have? > y = floor(x/.5) > z = (y)(.5) > r = x - z > if r > .24 then y = y + 1 > multiply y*.5 again for the final answer > > [math]x=1.6543[/math] > [math]y=floor([x]/.5)[/math] > [math]z=[y]*.5[/math] > [math]r=[x]-[z][/math] > [showif [r]>.24] > [math]y=[y]+1[/math] > [/showif] > [math]z=[y]*.5[/math] > > z is then your answer. > > > Matthew A Perosi > Psi Prime, Inc. > http://www.psiprime.com > 323 Union Blvd. > Totowa, NJ 07512 > P: 973.413.8210 > F: 973.413.8217 Thanks Matthew, that looks better than mine.. :-) http://www.euca.us/admin/tests/math_roundtohalf.html 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:

[WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (2012) Meet your competition (2000) [WebDNA] 6.2.1 fails on Apache 2.4.6 (2014) unable to launch acgi in WebCat (1997) ShipCosts database (1997) pop up menu's (1998) form data submission gets truncated (1997) WebCat editing, SiteGuard & SiteEdit (1997) SiteBuilder and reportin on page hits (awstats) (2006) Login required on development server (2003) errormessages.db (1997) WebCat2: multiple currency support (1997) WebCatalog can't find database (1997) Secure server question (1997) HELP WITH DATES (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) HomePage Caution (1997) Error & Problem (1997) More on the email templates (1997) no [search] with NT (1997)