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:

Multiple catalog databases and showcart (1997) Delete file through browser (1999) Errant Email. (1998) WebCat2b13 Command Reference Doc error (1997) The Guru Speaks-Is That Really the Only Manuel? (1998) Forms Search Questions (1997) Help! WebCat2 bug (1997) [WebDNA] PayPal integration code examples? (2011) [Fwd: Rotating Banners ... (was LinkExchange)] (1997) Error Type 3 (1999) Hard Questions ? (1997) Show shoppingcart after remove last item (1997) Database Changes (2000) Problems passing [SKU] with $Replace in 2.0 (1997) multi-paragraph fields (1997) when is date system date or order date? (1997) WebCat chatroom (1997) License for Sale? (2003) Is the Finder required? (1998) Close Databases Crash? (1998)