Actually, we find <@calc expr="@@request$filesize/1000" precision=x> works
best, where x is the number of decimal places.

----- Original Message ----- 
From: "William M Conlon" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, March 04, 2006 7:28 PM
Subject: Re: Witango-Talk: rounding?


> Try
>
> <@assign request$filesize '<@calc expr="ceil(@@request$filesize/
> 1000)" format="num:3-*,\,,3,.,,,,-">'>
>
>
> See <@CALC> in the Programmers Guide
>
> On Mar 4, 2006, at 7:21 PM, Shane Pearlman wrote:
>
> > I noticed neither 0f these round up if the number after the cut off
> > is above 5. Any tips?
> >
> >
> >
> > <@assign request$filesize '<@calc expr="@@request$filesize/1000"
> > format="num:3-*,\,,3,.,,,,-">'>
> >
> >
> >
> > Or
> >
> >
> >
> > <@assign request$filesize <@calc expr="<@col 4>/1024"
> > format="num:simple-integer">>
> >
> >
> >
> >
> >
> > Shane Pearlman
> >
> > 831.345.7033
> >
> >
> >
> > ______________________________________________________________________
> > __ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
>
> Bill
>
> William M. Conlon, P.E., Ph.D.
> To the Point
> 345 California Avenue Suite 2
> Palo Alto, CA 94306
>     vox:  650.327.2175 (direct)
>     fax:  650.329.8335
> mobile:  650.906.9929
> e-mail:  mailto:[EMAIL PROTECTED]
>     web:  http://www.tothept.com
>
> ________________________________________________________________________
> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
>


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to