What's a good way to compare the distance between two variables? Like a conditional branch that asks, if 'Variable_1' is within 3 integers of 'Variable_2' then... (no matter if either variable is positive or negative)
Also, is there a good formula to make one number closer to\more like another number? Like a formula that would make x closer to y, no matter if x is less than or greater than y. And x's final value would exponentially change less and less as it's starting value get's closer to what y is.
Thanks in advance!
Also, is there a good formula to make one number closer to\more like another number? Like a formula that would make x closer to y, no matter if x is less than or greater than y. And x's final value would exponentially change less and less as it's starting value get's closer to what y is.
Thanks in advance!