No.11827132 ViewReplyOriginalReport
What function/formula do I use to place all positive numbers into span of 0-1, in a logaritmic fashion where values tending towards infinity tends towards 1?

Basically I want to be able to put in any positive number and get a number between 0 and 1, without changing the order of values. So if x is bigger than y, then using the function on these numbers will not alter this relationship, no matter the specific values of x and y.

Sry if I'm explaining this badly, I'm trying to program it and I'm new to this.