‘y’ has to reach exactly 1 by being multiplied by .5 ‘z’ times, x is added to y to remove the chance of any remainder, how do you find the value of x?
X=(1/0.5)-y
Is that what your looking for?
got it:
[php]$x = ((pow(2, ceil(log($y, 2)))) - $y);[/php]
4 hours last night for nothing, 20 minutes this morning on a fresh sober mind for an answer… there’s a lesson for the kids in that somewhere…