rounding to nearest .05

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 22947
interpreted = N
texte = I was trying to find a snippit that would round numbers up to the nearest .05. I found this in the archive but the it is not a feature that currently exists. Has anyone found a workaround for v2.x that will accomplish this?[archive snippit] You might want to add a param to the ceil and floor arguements which specifies to which unit you need to round. So, [math]ceil(9.43)[/math] = 10 and [math]ceil(9.43, .05)[/math] = 9.45.[/archive snippit]ThanksTim Taylor Webmaster http://www.growzone.com Tim@versa.com t h e s i t e f o r t h e g r e e n i n d u s t r y 1.888.800.5904 Associated Messages, from the most recent to the oldest:

    
  1. rounding to nearest .05 (Tim Taylor 1999)
I was trying to find a snippit that would round numbers up to the nearest .05. I found this in the archive but the it is not a feature that currently exists. Has anyone found a workaround for v2.x that will accomplish this?[archive snippit] You might want to add a param to the ceil and floor arguements which specifies to which unit you need to round. So, [math]ceil(9.43)[/math] = 10 and [math]ceil(9.43, .05)[/math] = 9.45.[/archive snippit]ThanksTim Taylor Webmaster http://www.growzone.com Tim@versa.com t h e s i t e f o r t h e g r e e n i n d u s t r y 1.888.800.5904 Tim Taylor

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:

(ot) sitemap generator (1998) remotely add + sign (1997) WCS Newbie question (1997) Webcat XML/XSLT Performance vs. static Html - Anyone from (2006) listfiles-looking for slick solution (1997) WebCat2b12 - nesting [tags] (1997) Suddenly can't see files... (2000) find with exceptions (1997) 'page impression' techniques for banner ads (1999) Comments in db? (1997) Writefile (2000) Daze to Dates (1998) Calendar (1997) emailer error -108 (1997) WebCatalog 3 for Macintosh (1998) NetSplat and WebCat2 (1997) Moment of Thanks (1997) [OT] Theiving B*****ds (2004) oops private message leaked into talk list (1997) Upgrade to wsV (2004)