Does anyone have a routine to do this? I am not interested in the remainder. I am looking for code which is optimised for code space and not speed. Thanks in advance. Martin