People, Say I have numbers: 0.1 0.2 0.3 0.4 0.5 then I want to process thousands of numbers, choosing which of the above numbers the processed number is closest to. I can see ways of doing this eg I could calculate mid-points of the above numbers and then iterate through that list checking the value of |x - mid-point| to find the minimum value but I think there should be a more elegant, direct method but I can't think of it. Suggestions? Thanks, Phil. -- Philip Rhoades GPO Box 3411 Sydney NSW 2001 Australia E-mail: phil / pricom.com.au