If i have a number X that can change between 0 and X how can i proportionate it to 1? For example if X=X/2, 1 should be 0,5
I have no idea what you are talking about.
It looks more like computing/programing than mathematics.