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:

[IpAddress] Tag (1997) If Empty ? (1997) [writefile] (1997) RE: [redirect] w/o showing args? (1999) 2.0 Info (1997) off topic fetch vs PCS photomaster (1997) WebCatb15 Mac CGI -- [purchase] (1997) New Weird Behavior (bug report) (2000) Javascript/WebCatalog form population (2001) WCS Newbie question (1997) How can I record purchases to a database? (1998) WC2b15 File Corruption (1997) Logical and or in [hideif] (1997) Adding headers to email (1997) Intermitent problem using [referrer] (1997) WebMerchant Error (1998) acrobat -> wc (1998) WebSTAR 2.1 freezes my Mac (1997) Where's Cart Created ? (1997) How do you hide [math]stuff[/math] (1997)