On 23/07/2018 11:49 PM, Alex wrote: > > At this moment, I assume, that I'm approaching the problem from the > wrong end, and simply don't see something trivial... Anyway, does > anybody has a hint for me? Map the range to the integer value, then sum it.