Given two real numbers $x$ and $y$ (with $x, y \neq 0$), is there a function that returns only the result of the divisions $x/y$ and $y/x$ which is $\geq 1$?
$$f(x, y) = x/y \geq 1 \text{ if } x \geq y$$ and $$f(x, y) = y/x \geq 1 \text{ if } y \geq x$$
A practical application of this could be to calculate the voltage standing wave ratio VSWR from two impedances $Z_1$ and $Z_2$: the VSWR is always $\geq 1$, and is just the ratio of the larger to the smaller impedance.
What I am looking for is in effect the multiplication equivalent of the absolute function, which returns values $\geq 0$ for subtractions. It sounds to me like that probably exists, but I couldn't find it anywhere.