I use.
<cf_roundup n=500 x=#value#>
== roundup
<cfset n=500>
<cfset v=1225>
<cfset result = int((n-1+value)/n)*n>
== this works too.
<CFIF num MOD 500>
<CFSET num = 500 + (num \ 500) * 500>
</CFIF>
Anyway know a quick way to round a value _up_ to the 500th? In other words:
400 -> 500
600 -> 1000
1499 -> 1500
1501 -> 2000
This is for real estate calculations.
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.