>> Closest number (round):
>> <cfset round25 = 25000 * int(0.5 + num/25000)>
>
>You can just use round for this, instead of adding an then using int:
>
><cfset round25 = 25000 * round(num / 25000) />
>
>cheers,
>barneyb
>
>On 4/6/06, One User <[EMAIL PROTECTED]> wrote:
>
>
>--
>Barney Boisvert

Of course.  I use int(0.5+... because that Java rounding (MX and up), sometimes 
gives strange results.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237123
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to