Hi, as this list is so quiet (or broken?) I thought I'd post this question. I'm taking an integer value from a database. I need to be able to seperate out the tens and units into a new variable, the thousands and hundreds and thousands into another and the rest into another. eg: DbValue = 2864534 Value1 = 34 Value2 = 45 Value3 = 286 What would be the most efficent method of doing this? People oftne think as you're a developer you'll be good at maths. But I'm not. Ben ------------------------------------------------------------------------------ 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.