>>if (dp > 0) AND (dp <= 2)
>
>or
>
>if (dp=1) OR (dp=2)
My Head's Spinning! :)
Thanks for the input Len
I've just noticed that my mathmatical solution fails for DP's over 4, so I think I will either use my original post with the IF for the zero condition or your last suggestion.
Just to clear up the confusion...
My original spec was wrong..It should have been more like to following
Case dp = 0
lcIm = 99999999
Case dp = 1
lcIm = 999999.9
Case dp = 2
lcIm = 99999.99
Case dp = 3
lcIm = 9999.999
Case dp = 4
lcIm = 999.9999
Case dp = 5
lcIm = 99.99999
Case dp = 6
lcIm = 9.999999
Case dp = 7
lcIm = .9999999
Otherwise
lcIm = 99999999
Will Jones