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:

addlineitems within formvariable loop (1998) Server crash (1997) Validation (2000) WebCat2 Append problem (B14Macacgi) (1997) WebDNA Solutions ... (1997) searching multiple databases (1997) New WebDNA Example from Olin -- (1998) politeness (was searches with dash...) Please Read (2000) Can I do these? (1997) [WebDNA] backup / mirror website & databases (2018) Limiting user access to .tmpl files (1997) The Send Mail Button is the Best Troubleshooter (1998) hmmm (2006) Search for 20 finds ... Eureka! (1997) Dealer locator (1998) Problems appending to database (1997) Configuring E-mail (1997) RAM variables (1997) Sku numbers (1997) Type 2 errors with WebCatalog.acgi (1997)