sswift - gimme a break. I was just making it simple for someone who needed a little more help than a formula. Not only is it fast enough, but its also easy to interpret and read. He already said it worked, so anything posted after that point is purely academic, and possibly even more confusing.
I use that function in my own code when the speed isn't critical, cos it reads better (and is easier to type).
I use that function in my own code when the speed isn't critical, cos it reads better (and is easier to type).