This should work, I think...

<CFIF num MOD 500>
   <CFSET num = 500 + (num \ 500) * 500>
</CFIF>

where num is an integer to be rounded up to the next 500.

Chris Lennon
A Terra Nova Design Technologies, Inc.

-----Original Message-----
From: Park, Simon [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 09, 2000 9:34 AM
To: '[EMAIL PROTECTED]'
Subject: round up to the 500th


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.

------------------------------------------------------------------------------
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.

Reply via email to