Hi Jeff,

this could be a start:

output = Ceiling(input/10)*10;

Just some tests around it...

Patric




JW> I have a whole number rounding problem that I am not sure how solve most
JW> efficiently.

JW> I'd like to take any number and round to the nearest whole 10.

JW> For example:
JW> 31 would equal 40
JW> 27 would equal 30
JW> 155 would equal 160

JW> Any help would be appreciated...

JW> Thanks!
JW> Jeff


JW> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220994
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to