Hey all,
I really had no idea where to post this, so I'm posting it here.
I need a way of "resizing" a value between 0 and 1 to a number between 1 and infinity. I'm not a maths expert, but I've thought about this for many hours and still can't come up with a solution.
When the original value = 1, I need the new value to be 1 also.
When original = 0.75, new must = 1.5.
When original = 0.5, new must = 2.
When original = 0.25, new must = 4.
When original = 0.125, new must = 8.
The function or method must support any floating point value between 0 and 1. It must convert the value to a floating point value that is larger and larger as the original value approaches 0. The function need not handle an input of 0, because the value I input will never be 0.
It's a lot to ask, I know, but I have no idea how to do this. I'm sure there is a way of doing this.
Thanks,
Clonkex