Thanks!! Just what I was looking for. Much cleaner (and shorter) than mine and has the flexibility that I was needing. I have converted it into a function and it...
This is very close to what I need, but using floats runs into the same problem I've been having with my attempts. Your method, like my previous attempts, would handle...