liliya woland wrote:Hi all, I'm testing something and want to create a scale for number length representation. Say I have a number 4333, I want to take the number and say it's in a category 1000. Or the number is 324, the scale should be in 100. I want to do this inline - no loop, no var declaration. I have right now what's below, but it's far from the desired result. I know how to do this in a loop, but I want to have it inline. Seems like an interesting puzzle. If anyone can think of something, please let me know. Here is what I have:
liliya woland wrote:I was hoping there is a cleaner way than a clunky loop.
liliya woland wrote:If anyone can think of something, please let me know.
fred rosenberger wrote:This:
seems VERY clunky, to me.
Mike Simmons wrote:Once again, looking at the source would reveal hidden loops.
Damn! I hadn’t seen that post. I tend to open multiple tabs (since the previous/next buttons no longer exist), and posts can slip in which I don’t notice. I can have delays of over twenty minutes like that.
Mike Simmons wrote:Um, nothing? Which is why I suggested it.