This is a weird question that I thought of and I was wondering if I could get some help.
So normally $\frac{1}{x} = \frac{1}{y}$ then x and y would have to both be the same number, but with infinity $\frac{1}{-\infty} = \frac{1}{\infty}$ because 0 = 0 . How does this work? is the answer not really 0 for both but instead approaches 0?
Since $\infty$ isn't really a number it doesn't exactly make sense to say $\frac{1}{\infty}$.
But one could probably say, intuitively
$$\frac{1}{\infty} := \lim_{n\rightarrow\infty} \frac{1}{n}$$
and similarly,
$$ \frac{1}{-\infty} := \lim_{n\rightarrow\infty} \frac{1}{-n}$$
In this case both are zero as you claimed, but this doesn't imply $\infty = -\infty$ because these aren't real numbers you can manipulate in the usual way, just formal symbols.