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:

search results through frames (2000) XML Woes (2004) WebCat2 - [include] tags (1997) Banner system (2000) Redirect frame targets (1998) [showif] problem (1999) WebCat2b13MacPlugIn - More limits on [include] (1997) Signal Raised error (1997) [OT] BBedit Blank Line removal (2003) I'm tired of all this! (2000) Has ANYONE gotten the [object] context to work with Java(OSX) ??? HELP! (2002) [Announce] Newest Commerce Site based on WebCatalog (1997) emailer w/F2 (1997) Summing fields (1997) CyberCash Transaction Cost (1999) New Beta Documentation (1997) credit card authorization question (1997) problems with WebCat-Plugin () E-Mail Preferences in Admin Folder (1997) Calculating multiple shipping... (1997)